Reporter: Alexandre Poitras
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: " +
An exception is thrown whenever the Http code is different from 200 wich is not good.