Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1097

ContainerRequestContext setRequestUri violates getUriInfo javadoc

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.8.Final
    • Fix Version/s: 3.0.9.Final
    • Component/s: jaxrs
    • Labels:
      None

      Description

      setRequestUri is supposed to update the object returned by getUriInfo, not to make getUriInfo return a new object.

      The javadoc for getUriInfo says:

      The returned object contains "live" view of the request URI information in
      a sense that any changes made to the request URI using one of the
      setRequestUri(...) methods will be reflected in the previously
      returned UriInfo instance.

      — Source: https://jax-rs-spec.java.net/nonav/2.0/apidocs/javax/ws/rs/container/ContainerRequestContext.html#getUriInfo%28%29

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bill.burke Bill Burke
                Reporter:
                t.broyer Thomas Broyer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: