jersey
  1. jersey
  2. JERSEY-2098

Response.getLocation() does not return absolute URI when a response is created and immediately accessed from a resource method.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: core
    • Labels:
      None

      Description

      @GET
      public String locationTest() {
          Response r = Response.created("/foo");
          if (r.getLocation().isAbsolute()) {
              return "SUCESS"
          } else {
              return "FAILURE"
          }
      }
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Adam Lindenthal
              Reporter:
              Marek Potociar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 21 hours
                21h