Hi ,
I am stuck with one of the issue where a new "\n" is getting added by AttachmentSerializer.java at line#125. We are using cxf-bundle-2.4.3-fuse-04-16.jar which does not have complete fix of CXF-4482.
Requesting a newer version of cxf-bundle-2.4.3-fuse-XX-XX jar with complete fix of CXF-4482.
StringWriter writer = new StringWriter();
<b>writer.write("\n");</b>
writer.write("--");
writer.write(bodyBoundary);
External Issue Link: https://issues.apache.org/jira/browse/CXF-4482
I also wanted to highlight an issue with below highlighted code which results in <b>Content-Type: text/xml; charset=UTF-8; type="text/xml";</b> with duplicate text/xml which causes multipart requests to reject.
if (bodyType == null) {
mimeBodyCt.append((xop ? "application/xop+xml" : "text/xml") + "; charset=")
.append(encoding)
<b> .append("; type=\"")
.append(bodyCt)</b>
.append("\";");
} else {
mimeBodyCt.append(bodyType);
}
Requesting an urgent fix which will unblock us.
Thanks,
Ashwin