https://bz.apache.org/bugzilla/show_bug.cgi?id=69717
Bug ID: 69717 Summary: DirResourceSet breaks with trailing slash on webAppMount Product: Tomcat 9 Version: 9.0.106 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: jo...@verhofste.tech Target Milestone: ----- After upgrading to Tomcat 9.0.106, DirResourceSet's defined with a trailing slash on the webAppMount-parameter do not get properly set anymore. Downgrading to 9.0.105 fixes the issue. This works: ``` <PreResources base="/foo/bar/" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/WEB-INF/classes" /> ``` This does not: ``` <PreResources base="/foo/bar/" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/WEB-INF/classes/" /> ``` The docs do not explicitly state whether webAppMount allows a trailing slash or not, but the base-parameter does not care. I assume this is a regression introduced by https://github.com/apache/tomcat/commit/d83557f943e872fee6b4a5531ff67553118ed526, titled "Fix: Expand the path checks for Pre-Resources and Post-Resources mounted at a path within the web application. (markt)" on the changelog page. -- 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