StreamWagon.putFromStream() fails with IllegalStateException
------------------------------------------------------------

                 Key: WAGON-353
                 URL: https://jira.codehaus.org/browse/WAGON-353
             Project: Maven Wagon
          Issue Type: Bug
          Components: wagon-http
    Affects Versions: 2.0
            Reporter: Benjamin Bentmann


The following exception arises when aether:1.12+ and wagon-http:2.0 meet:
{noformat}
java.lang.IllegalStateException: Should not be using the streaming wagon for 
HTTP PUT
        at 
org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillOutputData(AbstractHttpClientWagon.java:930)
        at 
org.apache.maven.wagon.StreamWagon.getOutputStream(StreamWagon.java:188)
        at 
org.apache.maven.wagon.StreamWagon.putFromStream(StreamWagon.java:272)
        at 
org.apache.maven.wagon.StreamWagon.putFromStream(StreamWagon.java:252)
        at 
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.uploadChecksum(WagonRepositoryConnector.java:885)
        at 
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.uploadChecksums(WagonRepositoryConnector.java:861)
        at 
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:818)
        at 
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:475)
{noformat}

Despite wagon-http:2.0 implementing {{StreamingWagon}} it fails to provide the 
declared functionality. The missing functionality should either be 
added/restored or the interface revised to allow clients to detect whether 
streaming PUTs are supported or not.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to