https://issues.apache.org/bugzilla/show_bug.cgi?id=57455
Bug ID: 57455 Summary: Bootstrap doesn't handle paths with one quote Product: Tomcat 9 Version: unspecified Hardware: PC OS: All Status: NEW Severity: trivial Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: tob...@stoeckmann.org Created attachment 32374 --> https://issues.apache.org/bugzilla/attachment.cgi?id=32374&action=edit Fix with tests During bootstrap, repositories for class loaders are scanned from configuration. The syntax allows to quote paths and/or to simply join them with commas. If the path starts with a quote ("), Bootstrap#getPaths assumes that it must have hit the first regular expression match and implies that it will end with a quote, too. This is not correct, "a for example would be allowed due to the second regular expression rule. Bootstrap#getPaths would swallow the last character (a) and proceed. The fix is simple: Before removing the quotes, make sure that the string actually ends with a quote. Please see attached diff for latest trunk version of Tomcat 9, which also covers the issue with a new test case. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org