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

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.2.5
    • None
    • JAX-RS, Transports
    • None
    • 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

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

            Dates

              Created:
              Updated: