You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2018/06/18 16:37:22 UTC
[cxf] 04/07: [JBWS-4064] Non-URL encoded Content-Id href does not
seem be serialized by CXF's AttachmentSerializer
This is an automated email from the ASF dual-hosted git repository.
dkulp pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit e821858918b19333b11363c8fa3e0f85696da4c3
Author: rnetuka <rn...@redhat.com>
AuthorDate: Fri Apr 20 10:32:47 2018 +0200
[JBWS-4064] Non-URL encoded Content-Id href does not seem be serialized by CXF's AttachmentSerializer
(cherry picked from commit f2f26ee61641ed7e2ce82e39373de6ba59c7455d)
---
core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java b/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java
index 36367fa..8508e91 100644
--- a/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java
+++ b/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java
@@ -24,7 +24,6 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.io.StringWriter;
import java.io.Writer;
-import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Iterator;
@@ -215,7 +214,7 @@ public class AttachmentSerializer {
if (attachmentId != null) {
attachmentId = checkAngleBrackets(attachmentId);
writer.write("Content-ID: <");
- writer.write(URLDecoder.decode(attachmentId, StandardCharsets.UTF_8.name()));
+ writer.write(attachmentId);
writer.write(">\r\n");
}
// headers like Content-Disposition need to be serialized
--
To stop receiving notification emails like this one, please contact
dkulp@apache.org.