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

Syncronous and asynchronous versions of the client report exception in a slightly different way

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • 5.0
    • None
    • None

    Description

      This is more a "surprising behaviour" report than a true bug report. We noticed that if you use the asynchronous client and perform too many redirects, the exception passed to the FutureCallback is a RedirectException. However, if you use the synchronous client the execute() method throws a ClientProtocolException whose cause is a RedirectException. If this behaviour is intended it should be probably documented.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vigna Sebastiano Vigna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: