You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2010/05/07 22:12:52 UTC

[jira] Updated: (IVY-1106) URLResource does not properly support authentication

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

Maarten Coene updated IVY-1106:
-------------------------------

    Fix Version/s: 2.2.0-RC1
                       (was: trunk)

> 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
>            Assignee: Maarten Coene
>             Fix For: 2.2.0-RC1
>
>
> 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.