Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-864

HTTP Handlers ignore unsuccessful response codes.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0-RC1
    • None
    • None

    Description

      The HttpClientHander.download and BasicURLHandler.download methods don't bother to check the HTTP response code from the server. As a result they will put anything that the server sends back as the contents of the artifact. This isn't so good if it is something like the HTML message for a 404 or 503 and what you wanted was a JAR file. In fact it is pretty bad because then the cache is poisoned and the user is left with purging the cache as the only solution.

      Attachments

        1. http_download_response_patch.txt
          2 kB
          James P. White

        Activity

          People

            maartenc Maarten Coene
            jimwhite James P. White
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: