javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

JAX-WS write Content-ID: header with small 'd' letter and without a space after ':' for MIME Attachment part #1203

Open Dukekz opened 7 years ago

Dukekz commented 7 years ago

When creating a SOAP Attachment its 'Content-ID: ' header returns as 'Content-Id:' (with small 'd' letter and without a space after ':') This issue cause interoperability problems with some clients that expects all headers with a space after semicolon and expects standart headers as they described in ws-i.org Attachment profile 1.0

I think its because this code in class com.sun.xml.ws.encoding.MimeCodec : public ContentType encode(Packet packet, OutputStream out) throws IOException { ... if(cid != null && cid.length() >0 && cid.charAt(0) != '<') cid = '<' + cid + '>'; writeln("Content-Id:" + cid, out); writeln("Content-Type: " + att.getContentType(), out); ... }