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

Ivy can't access AWS CodeArtifact Repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0, 2.5.0
    • 2.5.1
    • Core
    • None

    Description

      Ivy can't access (Maven) CodeArtifact Repositories at AWS. The Server answers with HTTP 400 Bad Request.

      After debugging and looking into the sources, I found that Ivy sends an invalid "Accept" header. This seems to be related to https://bugs.openjdk.java.net/browse/JDK-8163921

      Changing the class org.apache.ivy.util.url.BasicUrlHandler, so that it sets an Accept header after opening a connection, like this ...

       

      95 con = normalizedURL.openConnection();
      96 con.setRequestProperty("Accept", "*/*"); // <-- added
      

      ... Ivy can access CodeArtifact Repositories perfectly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            blanger Berno Langer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m