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

JAX-RS ContainerRequestContext#setRequestUri() will cause a 404 when Uri contains a query string

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.9
    • Fix Version/s: 3.0.11, 3.1.11, 3.2.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Hi all.

      I have a PreMatching filter that attempts to set query parameters using #setRequestUri(). However, doing this causes CXF to always return 404 and never set the new query parameters.

      Then only exception to this was when the original URI both had no query parameters and ended without an slash.

      I have a little test to show what I mean:
      https://github.com/nhtzr/osgiee-web/blob/master/src/test/java/mx/nhtzr/osgiee/web/internal/MyFilterTest.java

      I also have a proposed fix:
      https://github.com/apache/cxf/pull/234

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergey_beryozkin Sergey Beryozkin
                Reporter:
                nhtzr Ezequiel Rosas Garcia
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: