JDK-8187220 : postinstall fails if there is a space in user name
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 8u144,9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2017-08-22
  • Updated: 2021-04-01
  • Resolved: 2018-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u211 b01Fixed
Related Reports
Relates :  
Description
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.


Comments
Could confirm this issue as reported by creating user "test user" from the terminal. MAC OS Sierra Version 10.12.64 JDK 8u144 JDK 9 1. Created a user with a sapce in name, "test user" from the terminal. 2. Downloaded JDK 8u144 jdk-8u144-macosx-x64.dmg and JDK 9 (jdk-9_osx-x64_bin.dmg) from respective urls: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html 3. Clicked on downloaded .dmg file and initiated installation process. The installation failed in the final steps with the message, "The installation failed. The installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance." (See referred screenshot). Attached install.log in subsequent comment from the affected system confirms the issue as reported: ==================================================== Sep 26 11:43:23 BAVAIDYA-Mac installd[461]: ./postinstall: java.lang.IllegalArgumentException: Invalid argument CFG_FILE: /Library/Application Support/Oracle/Java/java.settings.cfg Sep 26 11:43:23 BAVAIDYA-Mac installd[461]: ./postinstall: at com.oracle.install.InstallOptions.validateConfigFile(InstallOptions.java:165) Sep 26 11:43:23 BAVAIDYA-Mac installd[461]: ./postinstall: at com.oracle.install.InstallOptions.parseArguments(InstallOptions.java:102) Sep 26 11:43:23 BAVAIDYA-Mac installd[461]: ./postinstall: at com.oracle.install.InstallOptions.main(InstallOptions.java:46) Sep 26 11:43:23 BAVAIDYA-Mac installd[461]: ./postinstall: su: unknown login: test =================================================== This affects JDK 8u144 as well as JDK 9 installation.
26-09-2017

Corner case. Set fix version = tbd_minor
21-09-2017

"myuser" doesn't have a space in it.
13-09-2017

Adding the snippet from the log w.r.t user "myuser". Verified jnlp run post install and installation appears successfully. Reopening this report based upon teh comment that we have to accomodate exisiting acocunt names considering regression introduced by JDK-8132434. ==================================================================================================================================================== Sep 5 06:59:26 BAVAIDYA-Mac systemmigrationd[17137]: Connected to daemon. Language set to: English Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: @(#)PROGRAM:Install PROJECT:Install-1000 Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: @(#)PROGRAM:Installer PROJECT:Installer-909 Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Hardware: Macmini7,1 @ 2.60 GHz (x 4), 16384 MB RAM Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Running OS Build: Mac OS X 10.12.5 (16F73) Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: __CF_USER_TEXT_ENCODING=0x1F9:0x0:0x0 Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: TMPDIR=/var/folders/sw/86_xflx14jjgwyrs2k1d0m680000gs/T/ Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: HOME=/Users/myuser Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: SHELL=/bin/bash Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.woNc0lSNyB/Listeners Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.MBYOUcWteu/Render Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: LOGNAME=myuser Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: XPC_SERVICE_NAME=com.apple.xpc.launchd.oneshot.0x10000011.Installer Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: COMMAND_MODE=unix2003 Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: USER=myuser Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Env: XPC_FLAGS=0x0 Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: JDK 8 Update 144 Installation Log Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Opened from: /Volumes/JDK 8 Update 144/JDK 8 Update 144.pkg Sep 5 07:01:12 BAVAIDYA-Mac Installer[17327]: Product archive /Volumes/JDK 8 Update 144/JDK 8 Update 144.pkg trustLevel=202 Sep 5 07:01:18 BAVAIDYA-Mac Installer[17327]: InstallerStatusNotifications plugin loaded Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Administrator authorization granted. Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: ================================================================================ Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: User picked Standard Install Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Choices selected for installation: Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Upgrade: "JDK 8 Update 144" Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Upgrade: "JDK_VERSION" Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: JDK 8 Update 144.pkg#jdk180144.pkg : com.oracle.jdk8u144 : 1.1 Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Upgrade: "plugin" Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: JDK 8 Update 144.pkg#javaappletplugin.pkg : com.oracle.jre : 1.1 Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: ================================================================================ Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: It took 0.00 seconds to summarize the package selections. Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Volumes/JDK%208%20Update%20144/JDK%208%20Update%20144.pkg#jdk180144.pkg Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Volumes/JDK%208%20Update%20144/JDK%208%20Update%20144.pkg#javaappletplugin.pkg Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Set authorization level to root for session Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Will use PK session Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Using authorization level of root for IFPKInstallElement Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Starting installation: Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Configuring volume "Macintosh HD" Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Preparing disk for local booted install. Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Free space on "Macintosh HD": 832.76 GB (832757379072 bytes). Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: Create temporary directory "/var/folders/sw/86_xflx14jjgwyrs2k1d0m680000gs/T//Install.17327QhQC9D" Sep 5 07:01:28 BAVAIDYA-Mac Installer[17327]: IFPKInstallElement (2 packages) Sep 5 07:01:28 BAVAIDYA-Mac installd[787]: PackageKit: Adding client PKInstallDaemonClient pid=17327, uid=505 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer) Sep 5 07:01:29 BAVAIDYA-Mac Installer[17327]: PackageKit: Enqueuing install with framework-specified quality of service (utility) Sep 5 07:01:29 BAVAIDYA-Mac installd[787]: PackageKit: ----- Begin install ----- Sep 5 07:01:29 BAVAIDYA-Mac installd[787]: PackageKit: request=PKInstallRequest <2 packages, destination=/> Sep 5 07:01:29 BAVAIDYA-Mac installd[787]: PackageKit: packages=( "PKLeopardPackage <file://localhost/Volumes/JDK%208%20Update%20144/JDK%208%20Update%20144.pkg#jdk180144.pkg>", "PKLeopardPackage <file://localhost/Volumes/JDK%208%20Update%20144/JDK%208%20Update%20144.pkg#javaappletplugin.pkg>" ) Sep 5 07:01:29 BAVAIDYA-Mac installd[787]: PackageKit: Session UUID file exists - will not overwrite /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/DC70238C-0EDC-4678-A1C4-331F89437054.activeSandbox Sep 5 07:01:29 BAVAIDYA-Mac installd[787]: PackageKit: Will do receipt-based obsoleting for package identifier com.oracle.jdk8u144 (prefix path=Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk) Sep 5 07:01:29 BAVAIDYA-Mac installd[787]: PackageKit: Will do receipt-based obsoleting for package identifier com.oracle.jre (prefix path=Library/Internet Plug-Ins/JavaAppletPlugin.plugin) Sep 5 07:01:29 BAVAIDYA-Mac installd[787]: PackageKit: Extracting file://localhost/Volumes/JDK%208%20Update%20144/JDK%208%20Update%20144.pkg#jdk180144.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/DC70238C-0EDC-4678-A1C4-331F89437054.activeSandbox/Root/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk, uid=0) Sep 5 07:01:46 BAVAIDYA-Mac installd[787]: PackageKit: Extracting file://localhost/Volumes/JDK%208%20Update%20144/JDK%208%20Update%20144.pkg#javaappletplugin.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/DC70238C-0EDC-4678-A1C4-331F89437054.activeSandbox/Root/Library/Internet Plug-Ins/JavaAppletPlugin.plugin, uid=0) Sep 5 07:01:51 BAVAIDYA-Mac installd[787]: PackageKit: prevent user idle system sleep Sep 5 07:01:51 BAVAIDYA-Mac installd[787]: PackageKit: suspending backupd Sep 5 07:01:51 BAVAIDYA-Mac installd[787]: PackageKit: component Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/.Contents/Home/lib/missioncontrol/Java Mission Control.app missing or previously relocated Sep 5 07:01:51 BAVAIDYA-Mac installd[787]: PackageKit: component Library/Internet Plug-Ins/JavaAppletPlugin.plugin/.Contents/Resources/Java Updater.app missing or previously relocated Sep 5 07:01:51 BAVAIDYA-Mac installd[787]: PackageKit: component Library/Internet Plug-Ins/JavaAppletPlugin.plugin/.Contents/Resources/JavawsLauncher.app missing or previously relocated Sep 5 07:01:51 BAVAIDYA-Mac installd[787]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.xAqQMP/Scripts/com.oracle.jdk8u144.UTyAOZ Sep 5 07:01:51 BAVAIDYA-Mac install_monitor[17334]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr Sep 5 07:01:51 BAVAIDYA-Mac installd[787]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.xAqQMP/Scripts/com.oracle.jre.5vP3kg Sep 5 07:01:51 BAVAIDYA-Mac installd[787]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/DC70238C-0EDC-4678-A1C4-331F89437054.sandboxTrash for sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/DC70238C-0EDC-4678-A1C4-331F89437054.activeSandbox Sep 5 07:01:51 BAVAIDYA-Mac installd[787]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/DC70238C-0EDC-4678-A1C4-331F89437054.activeSandbox/Root (1 items) to / Sep 5 07:01:52 BAVAIDYA-Mac installd[787]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.xAqQMP/Scripts/com.oracle.jdk8u144.UTyAOZ Sep 5 07:01:52 BAVAIDYA-Mac installd[787]: ./postinstall: 2017-09-05 07:01:52.572 Tools[17365:214480] FSRef received correctly Sep 5 07:01:52 BAVAIDYA-Mac installd[787]: ./postinstall: 2017-09-05 07:01:52.682 Tools[17365:214480] JMC registered successfully for JFR file associations Sep 5 07:01:52 BAVAIDYA-Mac installd[787]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.xAqQMP/Scripts/com.oracle.jre.5vP3kg Sep 5 07:01:53 BAVAIDYA-Mac installd[787]: ./postinstall: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/com.oracle.java.Helper-Tool.plist: service already loaded Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: ./postinstall: objc[17397]: Class JavaLaunchHelper is implemented in both /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java (0x1002324c0) and /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/./libjli.dylib (0x1068ab480). One of the two will be used. Which one is undefined. Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: ./postinstall: java.lang.IllegalArgumentException: Invalid argument CFG_FILE: /Library/Application Support/Oracle/Java/java.settings.cfg Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: ./postinstall: at com.oracle.install.InstallOptions.validateConfigFile(InstallOptions.java:165) Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: ./postinstall: at com.oracle.install.InstallOptions.parseArguments(InstallOptions.java:102) Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: ./postinstall: at com.oracle.install.InstallOptions.main(InstallOptions.java:46) Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: PackageKit: Writing receipt for com.oracle.jdk8u144 to / Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: PackageKit: Writing receipt for com.oracle.jre to / Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: PackageKit: Touched bundle /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/lib/missioncontrol/Java Mission Control.app Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: PackageKit: Touched bundle /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/lib/missioncontrol/__MACOSX/Java Mission Control.app Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: PackageKit: Touched bundle /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Java 8 Update 144.app Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: PackageKit: Touched bundle /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/Java Updater.app Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: PackageKit: Touched bundle /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/JavawsLauncher.app Sep 5 07:01:54 BAVAIDYA-Mac installd[787]: Installed "JDK 8 Update 144" () Sep 5 07:01:54 BAVAIDYA-Mac install_monitor[17334]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr Sep 5 07:01:55 BAVAIDYA-Mac installd[787]: PackageKit: releasing backupd Sep 5 07:01:55 BAVAIDYA-Mac installd[787]: PackageKit: allow user idle system sleep Sep 5 07:01:55 BAVAIDYA-Mac installd[787]: PackageKit: ----- End install ----- Sep 5 07:01:55 BAVAIDYA-Mac installd[787]: PackageKit: 26.4s elapsed install time Sep 5 07:01:55 BAVAIDYA-Mac installd[787]: PackageKit: Running idle tasks Sep 5 07:01:55 BAVAIDYA-Mac installd[787]: PackageKit: Done with sandbox removals Sep 5 07:01:55 BAVAIDYA-Mac Installer[17327]: PackageKit: Registered bundle file:///Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/lib/missioncontrol/Java%20Mission%20Control.app/ for uid 505 Sep 5 07:01:55 BAVAIDYA-Mac Installer[17327]: PackageKit: Registered bundle file:///Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/lib/missioncontrol/__MACOSX/Java%20Mission%20Control.app/ for uid 505 Sep 5 07:01:55 BAVAIDYA-Mac Installer[17327]: PackageKit: Registered bundle file:///Library/Internet%20Plug-Ins/JavaAppletPlugin.plugin/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Java%208%20Update%20144.app/ for uid 505 Sep 5 07:01:55 BAVAIDYA-Mac Installer[17327]: PackageKit: Registered bundle file:///Library/Internet%20Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/Java%20Updater.app/ for uid 505 Sep 5 07:01:55 BAVAIDYA-Mac Installer[17327]: PackageKit: Registered bundle file:///Library/Internet%20Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/JavawsLauncher.app/ for uid 505 Sep 5 07:01:55 BAVAIDYA-Mac installd[787]: PackageKit: Removing client PKInstallDaemonClient pid=17327, uid=505 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer) Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: Running install actions Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: Removing temporary directory "/var/folders/sw/86_xflx14jjgwyrs2k1d0m680000gs/T//Install.17327QhQC9D" Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: Finalize disk "Macintosh HD" Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: Notifying system of updated components Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: **** Summary Information **** Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: Operation Elapsed time Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: ----------------------------- Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: disk 0.00 seconds Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: script 0.00 seconds Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: zero 0.00 seconds Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: install 27.13 seconds Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: -total- 27.14 seconds Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: IFDInstallController 10330 state = 5 Sep 5 07:01:56 BAVAIDYA-Mac Installer[17327]: Displaying 'Install Succeeded' UI. =======================================================================================
13-09-2017

I looked at the logs Pardeep provided elsewhere for the installation but I do not see any reference to "my user" - the current user seems to be "dcsuser". The submitters report and patch seem quite valid. And although Apple do now more actively dissuade people from creating account names with spaces, it is not prohibited completely, nor has it been in the past. So we still have to accommodate existing account names, and in that regard this is a regression introduced by JDK-8132434 as previously noted.
13-09-2017

MAC OS X 10.12.5 Created user with the name "my user". Please note that MAC does now allow account name with space either. Ref: https://support.apple.com/en-in/HT201548 Run install for JDK 8u144 and 9 ea b181 and could successfully install as well verify the installation. Result: 8u144 b01: OK 9 ea b181: OK Attached logs from respective attempts in the subsequent comment. This does not looks like a valid issue. However, written back to the submitter requesting additional information and complete Java install logs from his system.
05-09-2017

From code changeset it does look like it is an regression stared from 8u92/9ea b85 due to https://bugs.openjdk.java.net/browse/JDK-8132434
04-09-2017

This is an issue as the code pointed out in the report. ${SU} - ${CONSOLE_USER} -c "${LSREGISTER} -f ${JWS_APP}" if the ${CONSOLE_USER} has space in it will lead to failure. As mentioned in the report fix is to surround with quotes "" as below ${SU} - "${CONSOLE_USER}" -c "${LSREGISTER} -f ${JWS_APP}" JDK9 code also reflect the same issue,
04-09-2017