Details
Description
Let's say I define an ivy dependency like this:
<dependency org="org.hibernate" name="hibernate-core" rev="4.+" conf="compile->default" />
I know this is a valid dependency for my artifact repository (tested against Artifactory 3.4.0) as it is:
1. Valid if I specify the revision as 4.3.6.Final.
2. Valid if I pull 4.+ from Maven central directly.
The reason it fails when pulling 4.+ from my private artifact repository is because Artifactory does not set the Content-Type header on certain requests. I believe this problem to be related to IVY-1400.
I was able to code a workaround as a test to see if it fixed my problem by editing org.apache.ivy.util.url.ApacheURLLister (1557968) line 113 to become:
BufferedReader r = null;
if (charset == null)
else
{ r = new BufferedReader(new InputStreamReader(contentStream, charset)); }This resolved the issue in my test case.