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

ContainerRequestContext setRequestUri violates getUriInfo javadoc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.9.Final
    • 3.0.8.Final
    • jaxrs
    • None

      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

              patriot1burke@gmail.com Bill Burke (Inactive)
              t.broyer Thomas Broyer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: