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

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

Thanks for the input. 409:

{quote}
The request could not be completed due to a conflict with the current state of 
the target resource. This code is used in situations where the user might be 
able to resolve the conflict and resubmit the request.
{quote}

This error does not seem to relate to the URI but to another issue. Can you 
also provide a full debug log?
As far ar I know, the client must create the collection {{.../IBM}} first 
before perform the {{PUT}} operation. Can you create provide a minimal project 
with does this DAV upload? I will retry with the Apache DAV module. 
Additionally, do the collections upto IBM exist on the server already?

> 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
>
> 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