Details
-
Bug
-
Resolution: Fixed
-
P4
-
7
-
b103
-
linux
-
Verified
Description
FULL PRODUCT VERSION :
vagrant@precise32:/vagrant/signing$ java -version
java version " 1.7.0_17 "
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
$ uname -a
Linux precise32 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
$ locale
LANG=en_US
LANGUAGE=
LC_CTYPE= " en_US "
LC_NUMERIC= " en_US "
LC_TIME= " en_US "
LC_COLLATE= " en_US "
LC_MONETARY= " en_US "
LC_MESSAGES= " en_US "
LC_PAPER= " en_US "
LC_NAME= " en_US "
LC_ADDRESS= " en_US "
LC_TELEPHONE= " en_US "
LC_MEASUREMENT= " en_US "
LC_IDENTIFICATION= " en_US "
LC_ALL=en_US
A DESCRIPTION OF THE PROBLEM :
src/share/classes/sun/security/tools/JarSigner.java uses java.text.Collator to compare command line arguments. Unfortunately, on many systems 'alias' and '-alias' compare equal.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore test.keystore -storepass android test.apk debug
Please specify alias name
Please type jarsigner -help for usage
or
$ jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore test.keystore -storepass android test.apk keystore
Option lacks argument
Please type jarsigner -help for usage
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect jarsigner to let me call my key 'debug' or 'keystore' or any other name I choose.
ACTUAL -
Command line options are not valid key names.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Use a different key name.
vagrant@precise32:/vagrant/signing$ java -version
java version " 1.7.0_17 "
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
$ uname -a
Linux precise32 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
$ locale
LANG=en_US
LANGUAGE=
LC_CTYPE= " en_US "
LC_NUMERIC= " en_US "
LC_TIME= " en_US "
LC_COLLATE= " en_US "
LC_MONETARY= " en_US "
LC_MESSAGES= " en_US "
LC_PAPER= " en_US "
LC_NAME= " en_US "
LC_ADDRESS= " en_US "
LC_TELEPHONE= " en_US "
LC_MEASUREMENT= " en_US "
LC_IDENTIFICATION= " en_US "
LC_ALL=en_US
A DESCRIPTION OF THE PROBLEM :
src/share/classes/sun/security/tools/JarSigner.java uses java.text.Collator to compare command line arguments. Unfortunately, on many systems 'alias' and '-alias' compare equal.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore test.keystore -storepass android test.apk debug
Please specify alias name
Please type jarsigner -help for usage
or
$ jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore test.keystore -storepass android test.apk keystore
Option lacks argument
Please type jarsigner -help for usage
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect jarsigner to let me call my key 'debug' or 'keystore' or any other name I choose.
ACTUAL -
Command line options are not valid key names.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Use a different key name.