Bug 1282852
Summary: | Tomcat Does not properly parse spaces in JVM parameters/setttings | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Eric Rich <erich> |
Component: | ImageStreams | Assignee: | Vu Dinh <vdinh> |
Status: | CLOSED ERRATA | QA Contact: | Gaoyun Pei <gpei> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 2.2.0 | CC: | aos-bugs, csutherl, erich, gpei, jokerman, mbabacek, mmccomas, pslavice, rsvoboda, tiwillia, vdinh |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-origin-cartridge-jbossews-1.35.5.2-1.el6op | Doc Type: | Bug Fix |
Doc Text: |
Cause: The tomcat code didn't participate the spaces to be included in environment variables and didn't sanitize the variables before using those.
Consequence: The parser split the information in variables incorrectly and caused the JVM command to fail to incomplete or missing parameters.
Fix: The new method sh_split is added to tomcat code to sanitize the information in environment variables before parsing them.
Result:
|
Story Points: | --- |
Clone Of: | 1282850 | Environment: | |
Last Closed: | 2016-08-24 19:44:24 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: | 1282850 | ||
Bug Blocks: |
Description
Eric Rich
2015-11-17 15:57:48 UTC
Hi, I currently have a PR to improve the tomcat script to handle the white spaces. However, it's still required to have double quote encapsulating the directory which contains the white spaces. So, the correct env var setup command should be: rhc env set JAVA_OPTS_EXT='-Dworking.dir="app-root/data/test dir"' -a APP_NAME Thanks, Vu Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/7a0be7537cc5ce7b2749bca5a19a64f62cb97f6c Tomcat does not properly parse spaces in JVM parameters Tomcat script doesn't correct handle the white places in the parameters passing via env variable JAVA_OPTS_EXT which causes the JVM fails to parse the parameters correctly during execution. The tomcat bash script is modified to handle the white spaces and ensured the space is not ignored by adding the extra double quotes around the "JAVA_OPTS_EXT". Bug: 1282852 Link: <https://bugzilla.redhat.com/show_bug.cgi?id=1282852> Signed-off-by: Vu Dinh <vdinh> Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-1773.html |