-
Bug
-
Resolution: Fixed
-
P3
-
8u144, 9
-
b01
-
generic
-
os_x
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8215848 | 8u212 | Semyon Sadetsky | P3 | Closed | Fixed | b01 |
JDK-8220925 | emb-8u211 | Semyon Sadetsky | P3 | Resolved | Fixed | master |
FULL PRODUCT VERSION :
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
EXTRA RELEVANT SYSTEM CONFIGURATION :
User name has a space in it.
A DESCRIPTION OF THE PROBLEM :
This line in the ./postinstall is incorrect and will fail if the username has a space in it:
${SU} - ${CONSOLE_USER} -c "${LSREGISTER} -f ${JWS_APP}"
I believe the correction should be:
${SU} - "${CONSOLE_USER}" -c "${LSREGISTER} -f ${JWS_APP}"
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create an OSX user with a space in name e.g. "my user" and attempt JDK installation
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
JDK install succeeds.
ACTUAL -
JDK install fails
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Aug 22 12:06:29 MACHINE installd[1106]: ./postinstall: at com.oracle.install.InstallOptions.parseArguments(InstallOptions.java:102)
Aug 22 12:06:29 MACHINE installd[1106]: ./postinstall: at com.oracle.install.InstallOptions.main(InstallOptions.java:46)
Aug 22 12:06:29 MACHINE installd[1106]: ./postinstall: su: unknown login: senn
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Install with another user without a space in username.
Note: patch included above to fix the problem.
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
EXTRA RELEVANT SYSTEM CONFIGURATION :
User name has a space in it.
A DESCRIPTION OF THE PROBLEM :
This line in the ./postinstall is incorrect and will fail if the username has a space in it:
${SU} - ${CONSOLE_USER} -c "${LSREGISTER} -f ${JWS_APP}"
I believe the correction should be:
${SU} - "${CONSOLE_USER}" -c "${LSREGISTER} -f ${JWS_APP}"
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create an OSX user with a space in name e.g. "my user" and attempt JDK installation
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
JDK install succeeds.
ACTUAL -
JDK install fails
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Aug 22 12:06:29 MACHINE installd[1106]: ./postinstall: at com.oracle.install.InstallOptions.parseArguments(InstallOptions.java:102)
Aug 22 12:06:29 MACHINE installd[1106]: ./postinstall: at com.oracle.install.InstallOptions.main(InstallOptions.java:46)
Aug 22 12:06:29 MACHINE installd[1106]: ./postinstall: su: unknown login: senn
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Install with another user without a space in username.
Note: patch included above to fix the problem.
- backported by
-
JDK-8220925 postinstall fails if there is a space in user name
-
- Resolved
-
-
JDK-8215848 postinstall fails if there is a space in user name
-
- Closed
-
- relates to
-
JDK-8132434 On Mac Install Run javawslauncher.app to register protocol handler with Launch Services
-
- Closed
-