[ 
https://jira.codehaus.org/browse/MINDEXER-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy closed MINDEXER-42.
--------------------------------

    Resolution: Fixed

fixed r1190229

> WagonHelper.getWagonResourceFetcher does not support HTTPS
> ----------------------------------------------------------
>
>                 Key: MINDEXER-42
>                 URL: https://jira.codehaus.org/browse/MINDEXER-42
>             Project: Maven Indexer
>          Issue Type: Bug
>    Affects Versions: 4.1.2
>            Reporter: Jesse Glick
>            Assignee: Olivier Lamy
>            Priority: Minor
>             Fix For: 4.1.3
>
>
> The intent of {{WagonHelper.getWagonResourceFetcher}} is to make it easy to 
> use Wagon as a transport when available. In practice, it is useless since it 
> cannot handle HTTPS connections.
> The workaround is simple - construct a {{WagonFetcher}} directly with the 
> desired scheme - but then the existing convenience methods should not be 
> used. Recommend deprecating them, and optionally introducing a replacement
> {code:java}
>     public WagonFetcher getWagonResourceFetcher( final TransferListener 
> listener, final String protocol,
>                                                  final AuthenticationInfo 
> authenticationInfo, final ProxyInfo proxyInfo )
>         throws ComponentLookupException
>     {
>         return new WagonFetcher( plexusContainer.lookup( Wagon.class, 
> protocol ), listener, authenticationInfo, proxyInfo );
>     }
> {code}
> or
> {code:java}
>     public WagonFetcher getWagonResourceFetcher( final TransferListener 
> listener, final String indexUpdateUrl,
>                                                  final AuthenticationInfo 
> authenticationInfo, final ProxyInfo proxyInfo )
>         throws ComponentLookupException
>     {
>         return new WagonFetcher( plexusContainer.lookup( Wagon.class, 
> URI.create( indexUpdateUrl ).getScheme() ), listener, authenticationInfo, 
> proxyInfo );
>     }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to