You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/10/30 11:35:47 UTC

[Bug 58228] ApplicationContext.GET_RESOURCE_REQUIRE_SLASH vs StandardRoot.getResource(String)

https://bz.apache.org/bugzilla/show_bug.cgi?id=58228

hedgss@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hedgss@gmail.com

--- Comment #4 from hedgss@gmail.com ---
Created attachment 33233
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33233&action=edit
Add opportunity for getRealPath(String) to change behavior in according to
value of ApplicationContext.GET_RESOURCE_REQUIRE_SLASH

You won't be able to get the expected result (not null) If we call method
ServletContext.getRealPath("WEB-INF").
(The class org.apache.catalina.core.ApplicationContext was used in my case )
The bad thing is that I cannot change this behavior without tomcat patching.

The issue was fixed for ApplicationContext.getResource(String), 
but it's still actual for ApplicationContext.getRealPath(String).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org