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

            Bug ID: 57154
           Summary: Failure of TestWsWebSocketContainer when there is
                    directory %TEMP%\test
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: knst.koli...@gmail.com

Steps to reproduce:
1) Go to the temporary directory (System.getProperty("java.io.tmpdir")) and
create a directory named "test" there.
2) Run org.apache.tomcat.websocket.TestWsWebSocketContainer test case with Nio
or Nio 2.

The following two test cases are failing: 
testWriteTimeoutServerEndpoint
testWriteTimeoutServerContainer

Cause of the failure is the following ERROR:
The HTTP response from the server [HTTP/1.1 302 Found
] did not permit the HTTP upgrade to WebSocket
javax.websocket.DeploymentException: The HTTP response from the server
[HTTP/1.1 302 Found
] did not permit the HTTP upgrade to WebSocket

This test case configures DefaultServlet and tries to access
"ws://localhost:" + getPort() + "/test".

I suspect that Mapper responds with 302 redirect before the upgrade request
reaches web application.

This issue is observed at Buildbot. See
TEST-org.apache.tomcat.websocket.TestWsWebSocketContainer.NIO.txt
TEST-org.apache.tomcat.websocket.TestWsWebSocketContainer.NIO2.txt
files in http://ci.apache.org/projects/tomcat/tomcat8/logs/1634329/

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