Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1053028

Summary: Installer fails with multiple consecutive spaces in JDK install path on RHEL6 (EAP bz: 1039860)
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Len DiMaggio <ldimaggi>
Component: InstallerAssignee: Ken Johnson <kejohnso>
Status: CLOSED UPSTREAM QA Contact: Len DiMaggio <ldimaggi>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: ganandan, soa-p-jira
Target Milestone: CR2   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
If there are two or more consecutive spaces in the Java Development Kit install path, installation will fail on the Red Hat Enterprise Linux 6 platform. To work around this issue, please change names on the install path to ensure that there are not two or more consecutive spaces in any directory names.
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:34:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1039860    
Bug Blocks:    
Attachments:
Description Flags
Install log - failed install - with space in JDK install path
none
Install screenshot - failed install - with space in JDK install path none

Description Len DiMaggio 2014-01-14 15:28:43 UTC
Description of problem:

Related to:  https://bugzilla.redhat.com/show_bug.cgi?id=1052901

See attached install log and installer UI screenshot.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Len DiMaggio 2014-01-14 15:30:36 UTC
Created attachment 850008 [details]
Install log - failed install - with space in JDK install path

Comment 2 Len DiMaggio 2014-01-14 15:31:35 UTC
Created attachment 850009 [details]
Install screenshot - failed install - with space in JDK install path

Comment 4 Len DiMaggio 2014-01-14 15:34:09 UTC
Pavol - can you please add details - what was the JDK install path?

Comment 5 Thomas Hauser 2014-01-14 16:12:27 UTC
Additions to standalone.conf for https://bugzilla.redhat.com/show_bug.cgi?id=1005275 are the cause for this regression. A fix has been created and will be present for the next build.

Comment 6 Thomas Hauser 2014-01-14 16:16:52 UTC
Ignore previous comment. This issue is separate from the one affected by https://bugzilla.redhat.com/show_bug.cgi?id=1005275 . This issue still needs investigation.

Comment 7 Francisco Canas 2014-01-14 17:41:37 UTC
I have reproduced this bug on a rhel6 VM with the JAVA_HOME environment variable set to a path containing spaces similar to what is in the attached log.

Notice the double spaces used in the paths in both my tests and the log file:

My test:
JAVA_HOME = /false java  spaces/jre-1.7.0

Attached log:
JAVA_HOME = /home/psrna/soa-tests/java7/path with  space/oracle1.7/jre

I ran the add-user.sh script from the eap6.1.1 zip (that is without using the installer at all) and got the same output as in the log file:

My Result:
./add-user.sh: line 66: /false java spaces/jre-1.7.0/bin/java: No such file or directory

Attached Log:
/home/psrna/soa-tests/target/fsw6/jboss-eap-6.1/bin/add-user.sh: line 66: /home/psrna/soa-tests/java7/path with space/oracle1.7//bin/java: No such file or directory

So without using the installer, the add-user.sh script appears to have a problem dealing with the JAVA_HOME path if it has spaces.

I will investigate further, but I'm not sure if there is anything we (installer devs) can do to fix this issue since it appears to be an add-user.sh problem directly.

Comment 8 Francisco Canas 2014-01-14 18:49:51 UTC
The problem in line 66 of the add-user.sh that I found:

eval \"$JAVA\" $JAVA_OPTS \
         -jar \"$JBOSS_HOME/jboss-modules.jar\" \
         -mp \"${JBOSS_MODULEPATH}\" \
         org.jboss.as.domain-add-user \
         '"$@"'

$JAVA contains the path to the java command, which is created in part from the JAVE_HOME variable. In order for the consecutive spaces in JAVA_HOME not to be compressed into one space, we need to properly quote the $JAVA variable:

eval \""$JAVA"\" $JAVA_OPTS \
         -jar \"$JBOSS_HOME/jboss-modules.jar\" \
         -mp \"${JBOSS_MODULEPATH}\" \
         org.jboss.as.domain-add-user \
         '"$@"'

Making this change results in the add-user.sh script running normally even with a JDK path that has consecutive spaces as in my previous comment.

Also, this same issue occurs in the standalone.sh and domain.sh scripts since they also use eval commands similar to the above.

Comment 9 Francisco Canas 2014-01-14 19:46:33 UTC
See also https://bugzilla.redhat.com/show_bug.cgi?id=1039860

Comment 10 Len DiMaggio 2014-01-14 20:45:43 UTC
Just to confirm - is this failing with a single space in the JDK path? Or only with multiple consecutive spaces?

If this is caused by MULTIPLE CONSECUTIVE spaces then the issue is caused by this EAP issue: https://bugzilla.redhat.com/show_bug.cgi?id=1039860

Comment 11 Francisco Canas 2014-01-14 20:53:36 UTC
To confirm: I can only reproduce this failure with multiple consecutive spaces in the JDK path, so it is related to https://bugzilla.redhat.com/show_bug.cgi?id=1039860.

Comment 12 Thomas Hauser 2014-02-25 16:09:17 UTC
This issue is not an installer issue; it is an issue with the add-user.sh script from EAP.

Comment 16 Red Hat Bugzilla 2025-02-10 03:34:51 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.