Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-687

DefaultRedirectHandler does not access correct HttpParams

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.0 Alpha 1
    • 4.0 Alpha 2
    • HttpClient (classic)
    • None

    Description

      In the getLocationURI(HttpResponse, HttpContext) method, the HttpParams for determining REJECT_RELATIVE_REDIRECT and ALLOW_CIRCULAR_REDIRECTS are retrieved with:

      HttpParams params = response.getParams();

      The response HttpParams do not contain these values, however the request HttpParams do. The correct implementation is:

      HttpRequest request = (HttpRequest) context.getAttribute(HttpExecutionContext.HTTP_REQUEST);
      HttpParams params = request.getParams();

      Attachments

        Activity

          People

            Unassigned Unassigned
            qmay Quintin May
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: