[ 
https://issues.apache.org/jira/browse/WAGON-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15423379#comment-15423379
 ] 

Michael Osipov commented on WAGON-461:
--------------------------------------

Thanks for the log files. They help a lot. The first thing I see is that 
{{Jakarta Commons-HttpClient/3.1}} is used. If you take a closer look at the 
[dependencies 
list|http://www.mojohaus.org/wagon-maven-plugin/dependencies.html#Project_Transitive_Dependencies_runtime]
 of the plugin, you see that all dependencies are horribly old. Wagon is now at 
2.10, Jackrabbit at 2.2.

Before doing any further analysis, one needs to upgrade Maven Wagon first.

Clone from the plugin's Git repo and try to upgrade Wagon manually and test. 
Open an issue for upgrading it. Hopefully, there aren't any interface/ABI 
changes.

> URL string not properly encoded by webdav
> -----------------------------------------
>
>                 Key: WAGON-461
>                 URL: https://issues.apache.org/jira/browse/WAGON-461
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-webdav
>    Affects Versions: 2.10
>         Environment: All
>            Reporter: Mike Summers
>         Attachments: logs.zip
>
>
> wagon-webdav is not calling EncodingUtil prior to instantiating MkColMethod 
> which results in
> {code:java}
> Caused by: java.lang.IllegalArgumentException: Invalid uri 
> 'https://snafu.sharefile-webdav.com/Shared Folders/Fit - Expert 
> Services/IBM/': escaped absolute path not valid
> {code}
> when there are special characters in the URI string.
> Changing line 153 of org.apache.maven.wagon.providers.webdav.WebDavWagon from
> {code:java}
>             method = new MkColMethod( url );
> {code}
> to
> {code:java}
>             method = new MkColMethod( EncodingUtil.encodeURLToString( url ) );
> {code}
> solves the issue although you may want to fix it elsewhere in the flow.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to