Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5548

Websocket initialization URL is not valid when filter is not mapped to root.

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              Ronni Pi Chen Lin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: