cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r532672 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDeserializer.java
Date Thu, 26 Apr 2007 08:55:01 GMT
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");



Mime
View raw message