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.