You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Perch24 <ch...@hrblock.com> on 2009/05/05 18:21:26 UTC
Attachment serializer bug
In the AttachmentSerializer writeHeaders method (CXF 2.2.1) it looks like the
attachmentId is incorrectly substring'd. As it is today the substring
removes the last character of the content id plus the '>'. When the message
is deserialized it can not find the attachment since the content id is
incorrect.
I have changed the substring line to the following to fix this problem. I
can file a bug report on this, but wanted to make sure I wasn't missing
something.
attachmentId = attachmentId.substring(1, attachmentId.length() - 1);
Thanks,
Chris
--
View this message in context: http://www.nabble.com/Attachment-serializer-bug-tp23390908p23390908.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Attachment serializer bug
Posted by Daniel Kulp <dk...@apache.org>.
Please log a bug and attach a patch. That's definitely the best way to track
this.
Thanks!
Dan
On Tue May 5 2009 12:21:26 pm Perch24 wrote:
> In the AttachmentSerializer writeHeaders method (CXF 2.2.1) it looks like
> the attachmentId is incorrectly substring'd. As it is today the substring
> removes the last character of the content id plus the '>'. When the message
> is deserialized it can not find the attachment since the content id is
> incorrect.
>
> I have changed the substring line to the following to fix this problem. I
> can file a bug report on this, but wanted to make sure I wasn't missing
> something.
>
> attachmentId = attachmentId.substring(1, attachmentId.length() - 1);
>
> Thanks,
> Chris
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog