You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2025/04/18 17:34:06 UTC

(cxf) branch main updated: swaref attachement cid association failed (#2370)

This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/main by this push:
     new 69230dff8f swaref attachement cid association failed (#2370)
69230dff8f is described below

commit 69230dff8faf3d08036fbeea43aea52c421737ae
Author: qq1038765585 <43...@users.noreply.github.com>
AuthorDate: Sat Apr 19 01:34:01 2025 +0800

    swaref attachement cid association failed (#2370)
---
 .../java/org/apache/cxf/jaxb/attachment/JAXBAttachmentMarshaller.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/attachment/JAXBAttachmentMarshaller.java b/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/attachment/JAXBAttachmentMarshaller.java
index b9877fd3bd..74be7403de 100644
--- a/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/attachment/JAXBAttachmentMarshaller.java
+++ b/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/attachment/JAXBAttachmentMarshaller.java
@@ -80,7 +80,7 @@ public class JAXBAttachmentMarshaller extends AttachmentMarshaller {
         AttachmentImpl att = new AttachmentImpl(id, handler);
         att.setXOP(false);
         atts.add(att);
-        return id;
+        return "cid:" + id;
     }
 
     public void setXOPPackage(boolean xop) {