maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joakim Erdfelt (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (WAGONHTTP-12) An exception is throwed when the http response code is 201
Date Tue, 17 Oct 2006 12:17:53 GMT
    [ http://jira.codehaus.org/browse/WAGONHTTP-12?page=comments#action_77847 ] 
            
Joakim Erdfelt commented on WAGONHTTP-12:
-----------------------------------------

wagon-http is *NOT* meant for WebDav remote repository support.
Use wagon-webdav instead.

wagon-webdav properly supports the collection management needed (as well as http 201 support)


> An exception is throwed when the http response code is 201
> ----------------------------------------------------------
>
>                 Key: WAGONHTTP-12
>                 URL: http://jira.codehaus.org/browse/WAGONHTTP-12
>             Project: wagon-http
>          Issue Type: Bug
>            Reporter: Alexandre Poitras
>            Priority: Minor
>
> The  put method of the LightweightHttpWagon class throw an exception whener the http
response code is 201. The 201 code indicate the PUT method has completed successfully in a
WebDav environment.
> The problem comes from here :
>             if ( putConnection.getResponseCode() != HttpURLConnection.HTTP_OK )
>             {
>                 throw new TransferFailedException(
>                     "Unable to transfer file. HttpURLConnection returned the response
code: " +
>                         putConnection.getResponseCode() );
>             }
>    
> An exception is thrown whenever the Http code is different from 200 wich is not good.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message