We had an old JIRA SF-481 and it fixed new lines between HTTP headers and the first attachment. But the fix was missing in JBoss Fuse 6.3.
The AttachmentSerializer.java class is supposed to have this line
writer.write("\r\n");
to have an empty new line between HTTP headers and the first attachment element. i.e.
150 message.put(Message.CONTENT_TYPE, ct.toString());
|
151
|
152
|
153 // 2. write headers
|
154 out = message.getContent(OutputStream.class);
|
155 encoding = (String) message.get(Message.ENCODING);
|
156 if (encoding == null) {
|
157 encoding = StandardCharsets.UTF_8.name();
|
158 }
|
159 StringWriter writer = new StringWriter();
|
+ writer.write("\r\n");
|
160 writer.write("--");
|
161 writer.write(bodyBoundary);
|
162
|
163 StringBuilder mimeBodyCt = new StringBuilder();
|
164 String bodyType = getHeaderValue("Content-Type", null);
|
165 if (bodyType == null) {
|
166 mimeBodyCt.append(xop ? "application/xop+xml" : bodyCt)
|
167 .append("; charset=").append(encoding);
|
168 if (xop) {
|
169 mimeBodyCt.append("; type=\"").append(bodyCt);
|
170 if (bodyCtParamsEscaped != null) {
|
171 mimeBodyCt.append(bodyCtParamsEscaped);
|
172 }
|
173 mimeBodyCt.append("\"");
|
But it was missing in 6.3.
- relates to
-
SF-481 AttachmentSerializer puts an extra new line
-
- Resolved
-