Summary: | Cannot start apache tomcat 7.0 if server path contains two consecutive spaces. | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | TRAN Trung-Thanh <thanhtt> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
TRAN Trung-Thanh
2013-08-01 05:00:34 UTC
Adding analysis reported by Ognjen Blagojevic on tomcat users here: On several places in catalina.sh, there is eval command which seems to be inproperly escaped. E.g, if I want to pass parameter with two consecutive spaces using eval, this is the wrong way to do it: eval echo \"foo bar\" (prints: foo bar) This is the right way to do it: eval echo "\"foo bar\"" (prints: foo bar) I believe that catalina.sh should quote every parameter pass to eval in order to prevent whitespace collapse. Thanks for the report and the suggested fix. The fix has been applied to trunk and 7.0.x and will be included in 7.0.43 onwards. |