URLResource does not properly support authentication
----------------------------------------------------
Key: IVY-1106
URL: https://issues.apache.org/jira/browse/IVY-1106
Project: Ivy
Issue Type: Bug
Components: Core
Affects Versions: 2.1.0-RC2
Reporter: Heschi Kreinick
org.apache.ivy.plugins.repository.url.UrlResource#openStream uses
java.net.URL#openStream rather than going through the URLHandlerRegistry like
init does. This breaks authentication support. I encountered this bug when
using a version range specification (1.+) against a secured Maven repository,
but I imagine that it can cause any number of other problems. The fix is simply
to change openStream to work the same way init does, by replacing
return url.openStream();
with
return URLHandlerRegistry.getDefault().openStream(url);
This change passes all tests and solves my problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.