cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Loh Kok Jeng (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-2825) Multipart Header not Handled Correctly
Date Tue, 25 May 2010 00:46:24 GMT
Multipart Header not Handled Correctly
--------------------------------------

                 Key: CXF-2825
                 URL: https://issues.apache.org/jira/browse/CXF-2825
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.2.5
         Environment: Redhat Enterprise Linux 5.3
Apache Tomcat 5.5
JDK 6.0
Intel x86
            Reporter: Loh Kok Jeng


Multipart attachment headers other than Content-ID, Content-Type, Content-Transfer-Encoding,
are not handled correctly.  Often, the headers will be set to all lower case with null value.
 E.g.: content-location: null.


apache-cxf-2.2.5\rt\core\src\main\java\org\apache\cxf\attachment\AttachmentImpl.java

59c59,60
<         headers.put(name.toLowerCase(), value);
---
>         //headers.put(name.toLowerCase(), value);
>         headers.put(name, value);

apache-cxf-2.2.5\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\ext\MessageContextImpl.java

146,147c146,147
<             Attachment handler = (Attachment)handlers.get(i);
<             AttachmentImpl att = new AttachmentImpl(handler.getContentId(), handler.getDataHandler());
---

>             Attachment handler = (Attachment)handlers.get(i);
>             AttachmentImpl att = new AttachmentImpl(handler.getContentId(),  handler.getDataHandler());

148,149c149,150
<                 att.setHeader(key, att.getHeader(key));
---

>                 att.setHeader(key, handler.getHeader(key));


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message