https://issues.apache.org/bugzilla/show_bug.cgi?id=56890

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
I'm leaning towards resolving this as invalid.

While the spec and the Javadoc could be clearer, it seems pretty obvious that a
'virtual path' is 'servletPath + pathInfo' along the lines of section 3.5 of
the Servlet spec.

Therefore, requiring that the virtual path is either empty or starts with '/'
seems reasonable.

It is not unusual for one major verison of Tomcat to interpret a specification
more strictly than the previous major version. Such changes are to be expected
across major versions and certainly do not qualify as bugs. If these changes
are causing problems, then they can be added to the migration guide.

An argument could be made that the virtual path, if it doesn't start with '/',
should be taken as being relative to the ServletContext root - i.e. append '/'
and then process it. I'm not convinced that that argument is valid since there
is nothing I see in the specs or the Javadoc to support it.

-- 
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

Reply via email to