Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
Description
StreamingOMSerializer#serializeXOPInclude contains the following code:
String cid = reader.getAttributeValue(null, "href");
DataHandler dh = getDataHandler(cid, (OMAttachmentAccessor) reader);
if (dh == null)
OMFactory omFactory = OMAbstractFactory.getOMFactory();
OMText omText = omFactory.createOMText(dh, true);
omText.setContentID(cid);
This means that the contentId set on the OMText instance is incorrect: it is actually not the Content-ID, but the cid: URL. This implies that the generated XOP/MTOM message is incorrect.
The code in serializeXOPInclude should decode the href attribute in the same way as XOPAwareStAXOMBuilder#createOMElement (which uses ElementHelper.getContentID).
Attachments
Issue Links
- blocks
-
SYNAPSE-483 Sample 51 not working
- Resolved