You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Alexander Onnikov (JIRA)" <ji...@apache.org> on 2018/07/05 14:27:00 UTC

[jira] [Created] (CXF-7783) JAX-RS Server fails to serve requests via Websocket transport when context path is long

Alexander Onnikov created CXF-7783:
--------------------------------------

             Summary: JAX-RS Server fails to serve requests via Websocket transport when context path is long
                 Key: CXF-7783
                 URL: https://issues.apache.org/jira/browse/CXF-7783
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS, Transports
    Affects Versions: 3.2.5
            Reporter: Alexander Onnikov


I played with JAX-RS Websocket example and noticed that it does not work as expected when context path consists of several sections.

https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/server/Server.java#L27

I modified CONTEXT_PATH to be "/demo/error" then started demo server and established websocket connection to "ws://localhost:9000/demo/error". It was success but all requests failed:

I tried following requests:

GET /demo/error/customerservice/customers/123 (returned 404)

GET /error/customerservice/customers/123 (returned 400)

GET /customerservice/customers/123 (returned 400)

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)