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

Response.created doesn't work as advertised with relative URIs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Minor
    • None
    • 3.0.14.Final, 3.6.2.Final
    • None
    • None

    Description

      The javadoc of Response.create(URI) method suggests that the relative URIs are resolved against UriInfo.getRequestUri().

      The implementation of that method is:

      return status(Status.CREATED).location(location);
      

      but Response.location(URI) is documented to resolve the relative URIs against UriInfo.getBaseUri().

      I don't know what is the expected correct behavior but either the javadoc or the impl is incorrect.

      Attachments

        Activity

          People

            rsigal@redhat.com Ronald Sigal
            rhn-engineering-lkrejci Lukas Krejci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: