Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tomas-Kraus opened this issue Jun 2, 2022 · 0 comments · Fixed by #616

Comments

@Tomas-Kraus
Copy link
Member

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);
...
}

Source: javaee/metro-jax-ws#1203
Author: Dukekz

lukasj added a commit that referenced this issue Jun 9, 2022
…ut a space after ':' for MIME Attachment part

Signed-off-by: Lukas Jungmann <[email protected]>
lukasj added a commit to lukasj/metro-jax-ws that referenced this issue Feb 2, 2023
…ter and without a space after ':' for MIME Attachment part

Signed-off-by: Lukas Jungmann <[email protected]>
(cherry picked from commit 34622ec)
lukasj added a commit that referenced this issue Feb 2, 2023
…out a space after ':' for MIME Attachment part

Signed-off-by: Lukas Jungmann <[email protected]>
(cherry picked from commit 34622ec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant