Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A30977C4 for ; Thu, 6 Oct 2011 11:52:44 +0000 (UTC) Received: (qmail 25471 invoked by uid 500); 6 Oct 2011 11:52:43 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 25423 invoked by uid 500); 6 Oct 2011 11:52:43 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 25415 invoked by uid 99); 6 Oct 2011 11:52:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 11:52:43 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01-new.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 11:52:38 +0000 Received: from codehaus01-new.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01-new.managed.contegix.com (Postfix) with ESMTP id 29187B0457 for ; Thu, 6 Oct 2011 06:52:17 -0500 (CDT) Date: Thu, 6 Oct 2011 06:52:17 -0500 (CDT) From: "Benjamin Bentmann (JIRA)" To: issues@maven.apache.org Message-ID: <1896628859.13573.1317901937143.JavaMail.j2ee-jira@codehaus01-new.managed.contegix.com> In-Reply-To: <630370610.13028.1317831257159.JavaMail.j2ee-jira@codehaus01-new.managed.contegix.com> Subject: [jira] Commented: (WAGON-353) StreamWagon.putFromStream() fails with IllegalStateException MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/WAGON-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=280728#comment-280728 ] Benjamin Bentmann commented on WAGON-353: ----------------------------------------- Looks good now, thanks. > 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 > Assignee: Olivier Lamy > > 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