Bug 58455 - validate method in org.apache.catalina.webresources.StandardRoot forces a path to start with slash
Summary: validate method in org.apache.catalina.webresources.StandardRoot forces a pat...
Status: RESOLVED DUPLICATE of bug 58228
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.0.9
Hardware: PC All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2015-09-24 10:18 UTC by yifan liu
Modified: 2015-09-24 11:00 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description yifan liu 2015-09-24 10:18:00 UTC
the validate method in org.apache.catalina.webresources.StandardRoot.java forces  a path start with '/'. 

it should check the 'org.apache.catalina.core.ApplicationContext.GET_RESOURCE_REQUIRE_SLASH' system property so that there is a chance to ignore the slash.

Currently, if I call 


there will be a exception saying: 

The resource path [myresource.properties] is not valid

So I have to add a '/' before the resource name. But if I can not change it, the web application can not start.

I think this issue in all versions of tomcat 8

Comment 1 Violeta Georgieva 2015-09-24 11:00:50 UTC

*** This bug has been marked as a duplicate of bug 58228 ***