Bug 1021936 - Wrong icon target for shortcuts on windows if other language than English is used.
Summary: Wrong icon target for shortcuts on windows if other language than English is ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Installer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER3
: EAP 6.3.0
Assignee: Miles Tjandrawidjaja
QA Contact: Petr Kremensky
Russell Dickenson
URL:
Whiteboard:
: 1090856 (view as bug list)
Depends On:
Blocks: 1040818
TreeView+ depends on / blocked
 
Reported: 2013-10-22 11:05 UTC by Petr Kremensky
Modified: 2014-06-28 15:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
W2k8r2-x86_64 java version "1.7.0_40" Java(TM) SE Runtime Environment (build 1.7.0_40-b43) Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode)
Last Closed: 2014-06-28 15:27:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Kremensky 2013-10-22 11:05:58 UTC
Description of problem:
 Shortcuts have wrong icon target on windows if other language than English is used -> shotcuts have no icons.

Version-Release number of selected component (if applicable):
 EAP 6.2.0.ER6

How reproducible:
 Always

Steps to Reproduce:
 1. Run EAP installer (Console of GUI), choose other language than English.
 2. Choose to install shortcuts once asked (use default value or choose your own Program group name, but be aware of BZ1021901)
 3. Finish the installation 

Actual results:
 Targets for icons are:
$TARGET_DIR\jboss-eap-6.2\icons\48-start.png
$TARGET_DIR\jboss-eap-6.2\icons\48-stop.png
$TARGET_DIR\jboss-eap-6.2\icons\48-jmx.png
$TARGET_DIR\jboss-eap-6.2\icons\48-uninstall.png

Expected results:
 Targets for icons are:
$TARGET_DIR\jboss-eap-6.2\icons\48-start.ico
$TARGET_DIR\jboss-eap-6.2\icons\48-stop.ico
$TARGET_DIR\jboss-eap-6.2\icons\48-jmx.ico
$TARGET_DIR\jboss-eap-6.2\icons\48-uninstall.ico

Additional info:
 Shortcuts are working.

Comment 1 Miles Tjandrawidjaja 2013-10-22 15:52:05 UTC
Shortcuts have been updated to use .ico files on windows for all languages.

http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=soa6&id=7055ce865ba86e26930aca5b48af9c94dd088a94

Comment 2 Petr Kremensky 2013-11-01 14:32:46 UTC
There is more I didn't notice before, but it can be seen in the commit you've provided. 

All shortcuts are pointing to *.sh scripts instead of *.bat ones.

Comment 3 Miles Tjandrawidjaja 2013-11-05 14:48:07 UTC
Windows shortcuts now refer to *.bat files in all languages.

http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=eap-6.2&id=e67d2916baefea53707aade3a5d4f00c10317b0f

Also ensured all shortcuts asks for admin rights before running. Otherwise server will not launch properly.

http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=eap-6.2&id=f4a3d8b92f78e33ae636817a8c6b4791239739bf

Comment 4 Petr Kremensky 2013-11-15 13:29:59 UTC
Shortcut icon are broken again. They were working with ER7.
Use eg. Deutsch to install EAP on windows. Server start shortcut icon is good, other shortcuts use:
$TARGET_DIR\jboss-eap-6.2\icons\48-stop.png
$TARGET_DIR\jboss-eap-6.2\icons\48-jmx.png
$TARGET_DIR\jboss-eap-6.2\icons\48-uninstall.png

Shortcut targets are broken either.
target for standalone administration is:
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\run.exe http://localhost:8080/console
target for standalone shutdown is: 
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\run.exe --connect command=:shutdown --controller=127.0.0.1:9999
...

Comment 5 Miles Tjandrawidjaja 2013-11-15 20:19:02 UTC
Changed back to use icon files.

http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=eap-6.2&id=e2679ac5c3f77e351cc017e4677599c6a920493f

Also note that shutting down server on windows will not work when installing to directory with spaces. Bug has been submitted.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1031173

Comment 6 Petr Kremensky 2013-11-18 08:57:10 UTC
Great catch with BZ1031173 I cannot believe we miss this.

You are using jboss-cli.sh script for server shutdown in: 
http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=eap-6.2&id=e2679ac5c3f77e351cc017e4677599c6a920493f

I guess that batch script should be used instead.

Comment 7 Miles Tjandrawidjaja 2013-11-18 17:03:46 UTC
Yes your right changed back to use .bat files.

http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=eap-6.2&id=11d14fe524a1306115f78556affc1d807f9b0173

Comment 8 Petr Kremensky 2013-11-19 13:05:59 UTC
This is still broken. Icons are fine now, but some shortcuts have wrong target.

Working shortcuts (English GUI installation):
 - Server start (standalone):
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\run.exe "W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\standalone.bat"
 - Server start (domain):
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\run.exe "W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\domain.bat"
 - Server administration (standalone):
C:\Windows\System32\cmd.exe /C start http:\\localhost:8080\console
 - Server administration (domain):
C:\Windows\System32\cmd.exe /C start http:\\localhost:9990\console
 - Server stop (standalone):
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\jboss-cli.bat --connect command=:shutdown --controller=127.0.0.1:9999
 - Server stop (domain):
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\jboss-cli.bat --connect command=/host=master:shutdown --controller=localhost:9999
 - Uninstallation:
W:\pkremens\jdk1.7.0_40\jre\bin\java.exe -jar "W:\pkremens\EAP-6.2.0\Uninstaller\uninstaller.jar"

Deutsch GUI installation:
 - Server start (standalone): different file separator is used, but working
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\run.exe "W:\pkremens\EAP-6.2.0/jboss-eap-6.2/bin/standalone.bat"
 - Server start (domain): different file separator is used, but working
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\run.exe "W:\pkremens\EAP-6.2.0/jboss-eap-6.2/bin/domain.bat"
 - Server administration (standalone): BROKEN
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\run.exe http://localhost:8080/console
 - Server administration (domain): BROKEN
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\run.exe http://localhost:9990/console
 - Server stop (standalone): OK
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\jboss-cli.bat --connect command=:shutdown --controller=127.0.0.1:9999
 - Server stop (domain): OK
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\jboss-cli.bat --connect command=/host=master:shutdown --controller=localhost:9999
 - Uninstallation: BROKEN
W:\pkremens\EAP-6.2.0\jboss-eap-6.2\bin\jboss-cli.bat -jar "W:\pkremens\EAP-6.2.0/Uninstaller/uninstaller.jar"

Comment 9 Miles Tjandrawidjaja 2013-11-19 15:01:12 UTC
Fixing shortcuts so browser launches properly in other languages.

http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=eap-6.2&id=b4751e86f65ac9a0c52c5e71ffbda5850712fa50

Comment 10 Petr Kremensky 2013-11-19 15:05:30 UTC
Also uninstaller shortcut is broken!

Comment 11 Miles Tjandrawidjaja 2013-11-21 18:56:01 UTC
For some reason the uninstaller shortcut definition has to be first or else it won't work. 

http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=eap-6.2&id=20de1d990190adc779a9fa44d0d3844f78b3ea1c

Comment 12 Petr Kremensky 2013-11-22 13:07:12 UTC
All shortcuts have correct target and icon. Verified on EAP 6.2.0.CR3 installer.

Comment 13 Petr Kremensky 2013-12-12 07:46:43 UTC
I did some automation on this recently and there is still an issue with standalone start shortcut target after installing the EAP in French: 

java.lang.AssertionError: Wrong execution target for shortcut: Démarrer le serveur (autonome).lnk
Expected : c:\workspace\jbossqe-eap-tests-installer\target\eap\jboss-eap-6.2\bin\run.exe "c:\workspace\jbossqe-eap-tests-installer\target\eap\jboss-eap-6.2\bin\standalone.bat"
Actual   : c:\workspace\jbossqe-eap-tests-installer\target\eap\jboss-eap-6.2\bin\run.exe "c:\workspace\jbossqe-eap-tests-installer\target\eap/${common.gap.name}/bin/standalone.bat"

I also run into some non-functional things on windows which are causing my tests to fail (slashes instead of backslashes, ... ), I've created BZ1040818 to cover them.

Comment 14 Miles Tjandrawidjaja 2013-12-12 15:02:23 UTC
http://git.app.eng.bos.redhat.com/jbossas-installer.git/commit/?h=eap-6.2&id=5c3379c9b2161663e05577126eff8f1747f0c27c

French shortcut should be as expected.

Comment 15 Petr Kremensky 2014-04-24 10:13:16 UTC
*** Bug 1090856 has been marked as a duplicate of this bug. ***

Comment 16 Petr Kremensky 2014-04-24 10:19:16 UTC
Increasing severity as shortcuts are broken again in EAP 6.3.0.ER2. 

See BZ1090856 description for more information.

Comment 17 Petr Kremensky 2014-04-24 10:20:22 UTC
Not only icons, but also targets are broken now.

Comment 18 Miles Tjandrawidjaja 2014-04-24 18:36:43 UTC
Looks like out configuration was modified after pulling from zanata. I've revert back to the original shortcut configurations, and shortcuts look to be working for non-english languages like Dutch, Japanese.

http://git.app.eng.bos.redhat.com/git/eap-installer.git/commit/?id=ff69c9e40c4b185a9ddd9eafd57e935a46e10134

Comment 19 Petr Kremensky 2014-05-05 10:27:14 UTC
Verified on EAP 6.3.0.ER3. Shortcuts are now properly created for all languages.


Note You need to log in before you can comment on or make changes to this bug.