You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pi Chen Lin (JIRA)" <ji...@apache.org> on 2014/03/28 22:58:20 UTC
[jira] [Created] (WICKET-5548) Websocket initialization URL is not
valid when filter is not mapped to root.
Pi Chen Lin created WICKET-5548:
-----------------------------------
Summary: Websocket initialization URL is not valid when filter is not mapped to root.
Key: WICKET-5548
URL: https://issues.apache.org/jira/browse/WICKET-5548
Project: Wicket
Issue Type: Bug
Components: wicket-native-websocket
Affects Versions: 6.14.0
Reporter: Pi Chen Lin
Assignee: Martin Grigorov
When configuration the WebSocketFilter to map to '/test/*'
for example
<code language="xml">
<filter-mapping>
<filter-name>websocket.filter</filter-name>
<url-pattern>/test/*</url-pattern>
</filter-mapping>
</code>
Will result in not being able to establish a websocket connection, because of the following line in wicket-websocket-jquery.js :
<code>
line 47: url = protocol + '//' + document.location.host + Wicket.WebSocket.contextPath + '/wicket/websocket';
</code>
This line doesn't take in account the filter mapping.
--
This message was sent by Atlassian JIRA
(v6.2#6252)