Author: thomas.diesler(a)jboss.com
Date: 2007-01-11 07:29:13 -0500 (Thu, 11 Jan 2007)
New Revision: 1922
Modified:
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java
Log:
[JBWS-1393] - Problem interpreting messages with attachment when confronted with no
<start> header
Modified:
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java
===================================================================
---
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java 2007-01-11
12:16:41 UTC (rev 1921)
+++
branches/tdiesler/trunk/jbossws-core/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedDecoder.java 2007-01-11
12:29:13 UTC (rev 1922)
@@ -95,7 +95,11 @@
try
{
- boundary = ("\r\n--" +
boundaryParameter).getBytes("US-ASCII");
+ // [JBWS-1393] - Problem interpreting messages with attachment when confronted
with no <start> header
+ if (start == null)
+ boundary = ("--" +
boundaryParameter).getBytes("US-ASCII");
+ else
+ boundary = ("\r\n--" +
boundaryParameter).getBytes("US-ASCII");
}
catch (UnsupportedEncodingException e)
{
@@ -140,7 +144,7 @@
{
if (isValidRootType(part.getContentType()) == false)
throw new IllegalArgumentException("multipart/related type specified
a root type other than the one" + " that was found.");
-
+
rootPart = part;
}
else
Show replies by date