The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: Incorrect body digest being calculated for faults on Metro >= 1.2

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Sep 23, 2008 9:34 PM by: markshure
markshure

Posts: 16
Incorrect body digest being calculated for faults on Metro >= 1.2
Posted: Sep 22, 2008 5:58 PM
  Click to reply to this thread Reply

Hello,

There appears to be a problem with how Metro calculates the digest value for signing of the body of a SOAP message when it contains a fault. The digest value for the fault body that's being calculated by Metro is incorrect. When the message that contains the fault has headers that are also signed these have the correct digest values. Normal requests and responses which don't contain faults work as expected.

I've used the Apache XML Security API Canonicalizer class and Sun MessageDigest class to verify the digest values in the message. I've also used the openssl/xmllint command-line tools to verify the values.

This works when both sides are using JAX-WS but causes interoperability issues when it's used with any other web service technology (e.g. WCF).

The problem was not happening with a clean install of Sun Appserver 9.1 update 2. As soon as it's upgraded to Metro 1.2 or Metro 1.3 using the upgrade build.xml this problem occurs.

Example messages can be provided if need.

Thanks.

ashutoshshahi

Posts: 76
Re: Incorrect body digest being calculated for faults on Metro >= 1.2
Posted: Sep 23, 2008 11:22 AM   in response to: markshure
  Click to reply to this thread Reply

Yes, please provide the example messages. We did change the implementation in the fault path for 1.2, I think. SO this could be an issue.

Ashutosh

markshure

Posts: 16
Re: Incorrect body digest being calculated for faults on Metro >= 1.2
Posted: Sep 23, 2008 9:34 PM   in response to: markshure
  Click to reply to this thread Reply

The example messages are large so can I send them to an email address? Mine is mark_shure(at)hotmail.com.

Thanks.




 XML java.net RSS