https://bz.apache.org/bugzilla/show_bug.cgi?id=63412

            Bug ID: 63412
           Summary: WebSocket examples in Tomcat 9.0.20 RC fail with
                    SecurityManager
           Product: Tomcat 9
           Version: 9.0.x
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Examples
          Assignee: dev@tomcat.apache.org
          Reporter: knst.koli...@gmail.com
  Target Milestone: -----

Created attachment 36577
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36577&action=edit
catalina.2019-05-08.log

Smoke-testing Tomcat 9.0.20 release candidate:
running apache-tomcat-9.0.20-windows-x64.zip + OpenJDK Java 12.0.1 64-bit on
Windows 10.

WebSocket examples are failing and are not usable.

1. I opened all websocket examples in different tabs.
2. Testing the "echo" example:

1) The "Connect" button works, a connection is opened. 
2) Messages are sent to the server ("Sent: Here is a message!" line is
printed), but there is no echo from server (nothing is received).
3) The "Disconnect" button does not work.
4) The connection closes itself after a timeout. The following is printed:
"Info: WebSocket connection closed, Code: 1006"

3. Other WebSocket examples fail to initialize. They open a connection but fail
to operate any further.

4. If I run the same version of Tomcat and Java without enabling a
SecurityManager, the WebSocket examples work correctly.

BTW, other examples work correctly. Running them with SecurityManager being
enabled I do not note any issues.

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