[ https://issues.apache.org/jira/browse/IVY-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17462469#comment-17462469 ]
Berno Langer commented on IVY-1632: ----------------------------------- https://github.com/apache/ant-ivy/pull/96 > Ivy can't access AWS CodeArtifact Repository > -------------------------------------------- > > Key: IVY-1632 > URL: https://issues.apache.org/jira/browse/IVY-1632 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.4.0, 2.5.0 > Reporter: Berno Langer > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > 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 ... > > {noformat} > 95 con = normalizedURL.openConnection(); > 96 con.setRequestProperty("Accept", "*/*"); // <-- added > {noformat} > ... Ivy can access CodeArtifact Repositories perfectly. -- This message was sent by Atlassian Jira (v8.20.1#820001)