[ https://jira.codehaus.org/browse/WAGON-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed WAGON-122. ------------------------------ > An exception is throwed when the http response code is 201 > ---------------------------------------------------------- > > Key: WAGON-122 > URL: https://jira.codehaus.org/browse/WAGON-122 > Project: Maven Wagon > Issue Type: Bug > Reporter: Alexandre Poitras > Assignee: Joakim Erdfelt > 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 was sent by Atlassian JIRA (v6.1.6#6162)