You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joakim Erdfelt (JIRA)" <ji...@codehaus.org> on 2006/10/17 14:19:52 UTC

[jira] Resolved: (WAGONHTTP-12) An exception is throwed when the http response code is 201

     [ http://jira.codehaus.org/browse/WAGONHTTP-12?page=all ]

Joakim Erdfelt resolved WAGONHTTP-12.
-------------------------------------

    Resolution: Won't Fix

Wagon HTTP support for HTTP response code 201 is correct.

If you want WebDAV support, use wagon-webdav instead.

> 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

        

Re: [jira] Resolved: (WAGONHTTP-12) An exception is throwed when the http response code is 201

Posted by Carlos Sanchez <ca...@apache.org>.
Can you assign it to yourself and close it? that´s the usual procedure

On 10/17/06, Joakim Erdfelt (JIRA) <ji...@codehaus.org> wrote:
>      [ http://jira.codehaus.org/browse/WAGONHTTP-12?page=all ]
>
> Joakim Erdfelt resolved WAGONHTTP-12.
> -------------------------------------
>
>     Resolution: Won't Fix
>
> Wagon HTTP support for HTTP response code 201 is correct.
>
> If you want WebDAV support, use wagon-webdav instead.
>
> > 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
>
>
>


-- 
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                             -- The Princess Bride

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org