Berno Langer created IVY-1632:
---------------------------------
Summary: 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.5.0, 2.4.0
Reporter: Berno Langer
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)