You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2007/04/26 10:55:01 UTC
svn commit: r532672 -
/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java
Author: ffang
Date: Thu Apr 26 01:55:01 2007
New Revision: 532672
URL: http://svn.apache.org/viewvc?view=rev&rev=532672
Log:
[CXF-605] if attachment Content-ID is null, assign CXF default ID
Modified:
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java
Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java?view=diff&rev=532672&r1=532671&r2=532672
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java (original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java Thu Apr 26 01:55:01 2007
@@ -156,7 +156,8 @@
if (id != null && id.startsWith("<")) {
id = id.substring(1, id.length() - 1);
} else {
- return null;
+ //no Content-ID, set cxf default ID
+ id = "Content-ID: <root.message@cxf.apache.org";
}
id = URLDecoder.decode(id.startsWith("cid:") ? id.substring(4) : id, "UTF-8");