[jbossws-issues] [JBoss JIRA] (JBWS-4064) Non-URL encoded Content-Id href does not seem be serialized by CXF's AttachmentSerializer
Radovan Netuka (JIRA)
issues at jboss.org
Fri Apr 20 03:56:00 EDT 2018
[ https://issues.jboss.org/browse/JBWS-4064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564233#comment-13564233 ]
Radovan Netuka commented on JBWS-4064:
--------------------------------------
This one is curious.
According to [RFC-2392|https://tools.ietf.org/html/rfc2392]:
"A *cid* URL is converted to the corresponding Content-ID message header [MIME] by removing the *cid:* prefix, _converting the % encoded character to their equivalent US-ASCII characters_, and enclosing the remaining parts with an angle bracket pair, *<* and *>*... Reversing the process and _converting URL special characters to their % encodings_ produces the original cid."
But few lines later, they provide an example that contradicts the provided information:
"For example, *cid:foo4%25foo1 at bar.net* corresponds to *Content-ID: <foo4%25foo1 at bar.net>*"
The same RFC document clearly says, that *cid:...* element _must_ be encoded. I wasn't able to find any information on Content-ID however.
For me, the only possible solution is not to fix the cid element not to be encoded (as suggested upstream), but to fix the Content-ID header _to be encoded_.
> Non-URL encoded Content-Id href does not seem be serialized by CXF's AttachmentSerializer
> -----------------------------------------------------------------------------------------
>
> Key: JBWS-4064
> URL: https://issues.jboss.org/browse/JBWS-4064
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-5.1.8.Final
> Reporter: Viral Gohel
> Assignee: Radovan Netuka
> Fix For: jbossws-cxf-5.2.1.Final
>
> Attachments: mtomExample.war
>
>
> Check issue, https://issues.apache.org/jira/browse/CXF-7317
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbossws-issues
mailing list