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

            Bug ID: 54926
           Summary: WsFilter performs handshake validation even if it
                    doesn't have a mapped endpoint
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: rstoyanc...@yahoo.com
    Classification: Unclassified

WsFilter performs several validations on WebSocket requests before checking if
there is a registered Endpoint. I think the check for registered Endponts (and
delegation to the next Filter) should take place first and the filter should do
no further processing if there is mapped Endpoint for that URL.

For example a SockJS protocol test send a POST request with a connection and
upgrade headers but no ws version header and expects back a 405 (invalid HTTP
method) where WsFilter sends 426 even though it has no Endpoint mapped at that
URL.

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