Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7783

JAX-RS Server fails to serve requests via Websocket transport when context path is long

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.5
    • Fix Version/s: None
    • Component/s: JAX-RS, Transports
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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)

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Alexander.Onnikov Alexander Onnikov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: