Hendy Irawan created WICKET-5281:
------------------------------------
Summary: TomcatWebSocket error: WebSocket Redirect not supported
on a @RequireHttps page
Key: WICKET-5281
URL: https://issues.apache.org/jira/browse/WICKET-5281
Project: Wicket
Issue Type: Bug
Components: wicket-atmosphere
Affects Versions: 6.9.1
Environment: wicket-atmosphere 0.11, Tomcat 7.0
Reporter: Hendy Irawan
Assignee: Emond Papegaaij
Happens when using WebSocket together with Tomcat SSL/HTTPS connector on a
@RequireHttps page. I don't know why. But it seems wss is used properly anyway.
Note that HttpsMapper was tweaked to return Scheme=ANY on WebSocket.
{code}
Message: WebSocket Redirect not supported
Level: ERROR
Logger: org.atmosphere.container.version.TomcatWebSocket
Thread: http-nio-8943-exec-6 (id=71)
Timestamp: 2013-07-22 15:31:00.228+0700
CallĀ Location:
atĀ
org.atmosphere.container.version.TomcatWebSocket.redirect(TomcatWebSocket.java:51)
{code}
Chrome Network info as proof that WSS seems to be working:
{code}
GET
wss://localhost:8943/com.quikdo.freq.job/app/?35-IResourceListener.2-&X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.0.13&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0
HTTP/1.1
Pragma: no-cache
Origin: https://localhost:8943
Host: localhost:8943
Sec-WebSocket-Key: rHM8FjlVP024Q4XTLQ00wA==
Upgrade: websocket
Sec-WebSocket-Extensions: x-webkit-deflate-frame
Cache-Control: no-cache
Cookie: splashShown1.6=1
Connection: Upgrade
Sec-WebSocket-Version: 13
{code}
{code}
Request URL:
wss://localhost:8943/com.quikdo.freq.job/app/?35-IResourceListener.2-&X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.0.13&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0
1. Request Method:
GET
2. Status Code:
101 Switching Protocols
3. Request Headersview source
1. Cache-Control:
no-cache
2. Connection:
Upgrade
3. Cookie:
splashShown1.6=1
4. Host:
localhost:8943
5. Origin:
https://localhost:8943
6. Pragma:
no-cache
7. Sec-WebSocket-Extensions:
x-webkit-deflate-frame
8. Sec-WebSocket-Key:
rHM8FjlVP024Q4XTLQ00wA==
9. Sec-WebSocket-Version:
13
10. Upgrade:
websocket
4. Query String Parametersview sourceview URL encoded
1. 35-IResourceListener.2-:
2. X-Atmosphere-tracking-id:
0
3. X-Atmosphere-Framework:
1.0.13
4. X-Atmosphere-Transport:
websocket
5. X-Atmosphere-TrackMessageSize:
true
6. X-Cache-Date:
0
{code}
{code}Response Headers
1. Connection:
upgrade
2. Date:
Mon, 22 Jul 2013 08:38:38 GMT
3. Sec-WebSocket-Accept:
qNtBvFivxQIvVL6GfN9jSkaai48=
4. Server:
Apache-Coyote/1.1
5. Upgrade:
websocket
6. X-Atmosphere-tracking-id:
210c5e6b-9a1d-4f8e-8564-d26499a940fd
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira