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: | Installer | Assignee: | Ken Johnson <kejohnso> | ||||||
| Status: | CLOSED UPSTREAM | QA Contact: | Len DiMaggio <ldimaggi> | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.0.0 | CC: | 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
Len DiMaggio
2014-01-14 15:28:43 UTC
Created attachment 850008 [details]
Install log - failed install - with space in JDK install path
Created attachment 850009 [details]
Install screenshot - failed install - with space in JDK install path
Pavol - can you please add details - what was the JDK install path? 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. 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. 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. 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.
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 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. This issue is not an installer issue; it is an issue with the add-user.sh script from EAP. This product has been discontinued or is no longer tracked in Red Hat Bugzilla. |