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/29 17:05:15 UTC

[jira] [Commented] (WICKET-5548) Websocket initialization URL is not valid when filter is not mapped to root.

    [ https://issues.apache.org/jira/browse/WICKET-5548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13954314#comment-13954314 ] 

Pi Chen Lin commented on WICKET-5548:
-------------------------------------

Maybe it's missing 'filterPrefix'?

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