You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Carlos Sanchez (JIRA)" <ji...@codehaus.org> on 2006/04/21 07:49:19 UTC
[jira] Updated: (WAGON-36) An exception is throwed when the http
response code is 201
[ http://jira.codehaus.org/browse/WAGON-36?page=all ]
Carlos Sanchez updated WAGON-36:
--------------------------------
Fix Version: 1.0-alpha-7
> An exception is throwed when the http response code is 201
> ----------------------------------------------------------
>
> Key: WAGON-36
> URL: http://jira.codehaus.org/browse/WAGON-36
> Project: wagon
> Type: Bug
> Versions: 1.0-alpha-6
> Reporter: Alexandre Poitras
> Priority: Minor
> Fix For: 1.0-alpha-7
>
>
> 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