[ 
http://issues.apache.org/jira/browse/AXIS-2319?page=comments#action_12359125 ] 

Tom Jordahl commented on AXIS-2319:
-----------------------------------

Since Axis is using a standard JavaMail jar file, the bug seems to be in that 
library.
Since we do not control these jar files, fixing this problem may be difficult.

For reference see section 5.1. "Syntax of the Content-Type Header Field" in RFC 
2045 - http://www.ietf.org/rfc/rfc2045.txt


> Bad parsing of content type header for multipart messages
> ---------------------------------------------------------
>
>          Key: AXIS-2319
>          URL: http://issues.apache.org/jira/browse/AXIS-2319
>      Project: Apache Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.1
>     Reporter: Mattias Norlander

>
> I am accessing axis (v1.1) web services from a php client.
> When trying to send messages with attachments, the server cannot process them.
> This is what I get:
> Error in parsing mime data stream:  null
> at
> org.apache.axis.attachments.MultiPartRelatedInputStream.<init>(MultiPartRelatedInputStream.java:368)
>  
> After some debugging I figured out where the problem was. 
> The content type header sent from php looks like this:
> multipart/related; boundary="abc"; type=text/xml
> Axis (MultiPartRelatedInputStream class) will then pass this data to the 
> constructor for
> javax.mail.internet.ContentType. This constructor will then throw an 
> exception. The
> workaround is to add double quotes around the "text/xml" part, like this:
> multipart/related; boundary="abc"; type="text/xml"
> ... and everything works fine. The problem is this cannot be done without 
> altering the actual PHP soap
> implementation. And also, as far as I can see, the quotes are not mandatory. 
> If you look at the examples
> from w3, they don't use them:
> http://www.w3.org/TR/2000/NOTE-SOAP-attachments-20001211#SOAPMultipart
> So I would consider this a bug in axis.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to