You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andrei Shakirin (JIRA)" <ji...@apache.org> on 2013/11/09 20:10:17 UTC
[jira] [Comment Edited] (CXF-5381) SAAJStreamWriter transforms
DigestValue of custom signature
[ https://issues.apache.org/jira/browse/CXF-5381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818221#comment-13818221 ]
Andrei Shakirin edited comment on CXF-5381 at 11/9/13 7:09 PM:
---------------------------------------------------------------
Short note: the code works fine in CXF 2.5.2.
In 2.5.2 SAAJInInterceptor uses StaxUtils.copy(node, new W3CDOMStreamWriter(part)); to copy message content.
It seems that problem is caused by the SAAJStreamWriter.
was (Author: ashakirin):
Short note: the code work without problem in CXF 2.5.2.
In that version SAAJInInterceptor uses StaxUtils.copy(node, new W3CDOMStreamWriter(part)); to copy message content.
It seems that problem is caused by the SAAJStreamWriter.
> SAAJStreamWriter transforms DigestValue of custom signature
> -----------------------------------------------------------
>
> Key: CXF-5381
> URL: https://issues.apache.org/jira/browse/CXF-5381
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.7.7
> Reporter: Andrei Shakirin
> Attachments: saaj_test.zip
>
>
> I observe strange effect by processing custom signature in service inbound chain. End exception is: "Caused by: org.apache.xml.security.exceptions.Base64DecodingException: Error while decoding".
> After a bit analyze I found that DigestValue of Signature is concatinated with DigestValue of another signature and therefore cannot be proceed by xml security (santuario).
> Additional debugging shows that signature is broken by StaxUtils.copy(node, new SAAJStreamWriter(part)); in SAAJInInterceptor.
> Value in node is still correct, but value in SOAPMessage is broken.
> I attach a small project to illustrate the issue. Run mvn clean test for the project and compare DigestValue of Signature SIG-7D02FBC5A7AED81312138383830534822 in original request.xml and in output.
--
This message was sent by Atlassian JIRA
(v6.1#6144)