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

BasicURLHandler should use method=head for getURLInfo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha-2
    • 2.0.0-beta-1
    • Core
    • None

    Description

      We encountered a problem where ivys and artifacts are downloaded twice from the server. The problem only occurs with the BasicURLHandler, the HttpClientHandler correctly set the request method to HEAD is getURLInfo.

      The fix to BasicURLHandler is set the request method to head. The info does not need the response body.

      if (con instanceof HttpURLConnection) {
      ((HttpURLConnection) con).setRequestMethod("HEAD");
      int status = ((HttpURLConnection) con).getResponseCode();

      Attachments

        Activity

          People

            maartenc Maarten Coene
            bonanno Jim Bonanno
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: