You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2007/03/12 12:35:52 UTC

DO NOT REPLY [Bug 41821] - Invalid Reference Signature when are used 2 or more Namespaces

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41821>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41821





------- Additional Comments From miro@space-comm.com  2007-03-12 04:35 -------
Created an attachment (id=19698)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19698&action=view)
Sign and Validate something using 2 namespaces

The problem is when are used 2 XML Namespaces:
- "dsig" for "http://www.w3.org/2000/09/xmldsig#"
- "xsd" for "http://uri.etsi.org/01903/v1.3.2#"

The actual problem is happen because during the signing process the Digest
calculations are done using just one (the first and main) namespace. When the
XML signature is saved to the file using c14nWithComments transformation the
file is saved in correct format. Then when the file is loading the signature is
loaded using both namespaces which is correct also. Then the problem is showing
during Validation when the digest calculation is done using just one namespace
which is not correct and validation  which using both namespaces which is
correct.
I am attached a file with test case.
Any idea how to solve the problem?
I am trying to solve the problem using Transform in Reference
"#L1.S1-SignedProperties" where this is happen but without result until now. 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.