You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Stefan Bodewig (Jira)" <ji...@apache.org> on 2022/10/31 17:56:00 UTC

[jira] [Updated] (IVY-1632) Ivy can't access AWS CodeArtifact Repository

     [ https://issues.apache.org/jira/browse/IVY-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Bodewig updated IVY-1632:
--------------------------------
    Fix Version/s: 2.5.1

> 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
>             Fix For: 2.5.1
>
>          Time Spent: 40m
>  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.10#820010)