You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Bram de Kruijff (JIRA)" <ji...@apache.org> on 2011/07/20 17:06:57 UTC
[jira] [Created] (FELIX-3048) HttpContext getResource(name) called
without preceeding slash
HttpContext getResource(name) called without preceeding slash
-------------------------------------------------------------
Key: FELIX-3048
URL: https://issues.apache.org/jira/browse/FELIX-3048
Project: Felix
Issue Type: Bug
Components: HTTP Service
Affects Versions: http-2.2.0
Reporter: Bram de Kruijff
ServletContextImpl#normalizePath explicitly strips the preceeding slash from a resource request before calling HttpContext#getResource. This behavior is different from the Pax Web implementation. Not sure that the HttpContext specification is conclusive, but at least this is inconsistent with ServletContext#getResource that states: "Returns a URL to the resource that is mapped to a specified path. The path must begin with a "/" and is interpreted as relative to the current context root."
Originally reported under As reported under https://issues.apache.org/jira/browse/ACE-156
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira