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

Konstantin Kolinko <knst.koli...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from Konstantin Kolinko <knst.koli...@gmail.com> ---
REOPENing, as I think there is still more to it.

With current trunk:

GET * HTTP/1.1
Host: a

Expected: Error 400 or error 404 (depends on what is written is the spec, I
have not looked there yet). Tomcat 7 returns 404.

Actual: Error 500 with a stacktrace

 java.lang.IllegalArgumentException: The resource path [*] is not valid
    at
org.apache.catalina.webresources.StandardRoot.validate(StandardRoot.java:251)
    at
org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:212)
    at
org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:206)
    at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:716)
    at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:411)


GET ? HTTP/1.1
Host: a

GET foo HTTP/1.1
Host: a

Expected=Actual: Error 400, as expected.
Other invalid URLs are rejected early. There is special processing for "*" in
CoyoteAdapter.normalize(MB) that allows it to survive.

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