maven-wagon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Poitras (JIRA)" <>
Subject [jira] Created: (WAGON-36) An exception is throwed when the http response code is 201
Date Fri, 17 Feb 2006 15:20:19 GMT
An exception is throwed when the http response code is 201

         Key: WAGON-36
     Project: wagon
        Type: Bug

    Versions: 1.0-alpha-6    
    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:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message