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

ContainerRequestContext setRequestUri violates getUriInfo javadoc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.9.Final
    • 3.0.8.Final
    • jaxrs
    • 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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: