[ 
http://jira.codehaus.org/browse/WAGON-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brett Porter closed WAGON-95.
-----------------------------

         Assignee: Brett Porter
       Resolution: Duplicate
    Fix Version/s:     (was: 1.0-beta-3)

> Upload fail with exception "Entity closing requests cannot be redirected..."
> ----------------------------------------------------------------------------
>
>                 Key: WAGON-95
>                 URL: http://jira.codehaus.org/browse/WAGON-95
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-webdav
>    Affects Versions: 1.0-beta-3
>         Environment: Mac OS X, server: Archiva 1.0, wagon webdav: latest 
> suversion version (1.0-rc1-snapshot)
>            Reporter: Ludovic MaƮtre
>            Assignee: Brett Porter
>            Priority: Minor
>         Attachments: webdav_resource_put_nofollowredirects.txt
>
>
> When i try to upload a file with te webdav wagon to archiva it fail with the 
> following exception:
> [INFO] Retrieving previous build number from ubik-central
> Uploading: 
> http://forge.ubik-products.com/archiva/repository/ubik-central//com/ubikproducts/xsystem/xsystem/1.0-SNAPSHOT/xsystem-1.0-20071230.114939-2.pom
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Entity enclosing requests cannot be redirected without user 
> intervention
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.IllegalArgumentException: Entity enclosing requests cannot be 
> redirected without user intervention
>       at 
> org.apache.commons.httpclient.methods.EntityEnclosingMethod.setFollowRedirects(EntityEnclosingMethod.java:225)
>       at 
> org.apache.maven.wagon.providers.webdav.CorrectedWebdavResource.putMethod(CorrectedWebdavResource.java:150)
>       at 
> org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.java:242)
>       at 
> org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:237)
>       at 
> org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:153)
> I have to put the followRedirect parameter to false for the file to be 
> uploaed correctly:
>         method.setFollowRedirects( super.followRedirects );
> to
>         //is it possible to follow redirects on PUT operations ?
>         method.setFollowRedirects( false );
> But i' wondering why such error happen in the first place, i guess others 
> should have encountered it before.

-- 
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


Reply via email to