ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heschi Kreinick (JIRA)" <>
Subject [jira] Created: (IVY-1106) URLResource does not properly support authentication
Date Wed, 29 Jul 2009 01:13:14 GMT
URLResource does not properly support authentication

                 Key: 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
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();


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.

View raw message