ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1152880 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java
Date Mon, 01 Aug 2011 18:10:22 GMT
Author: veithen
Date: Mon Aug  1 18:10:22 2011
New Revision: 1152880

URL: http://svn.apache.org/viewvc?rev=1152880&view=rev
Log:
AXIOM-326: Fixed an issue that caused the MIME parser to end up in an unexpected state under
some circumstances.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java?rev=1152880&r1=1152879&r2=1152880&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java
Mon Aug  1 18:10:22 2011
@@ -153,7 +153,7 @@ public class PartFactory {
                     int count = BufferUtils.inputStream2OutputStream(in, baaos, thresholdSize);
 
                     if (count < thresholdSize) {
-                        return new PartOnMemoryEnhanced(headers, baaos.buffers(), baaos.length());
+                        part = new PartOnMemoryEnhanced(headers, baaos.buffers(), baaos.length());
                     } else {
                         // A BAAInputStream is an input stream over a list of non-contiguous
4K buffers.
                         BAAInputStream baais = 



Mime
View raw message