santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm O hEigeartaigh <cohei...@apache.org>
Subject Re: c14n11 bug?
Date Thu, 21 Apr 2011 15:34:29 GMT
Hi,

It's a regression that was introduced in the 1.4.4 release. It's
currently being investigated as part of this JIRA:

https://issues.apache.org/jira/browse/SANTUARIO-266

Colm.

On Thu, Apr 21, 2011 at 12:14 PM, flaklypa
<daniel.granath@trustweaver.com> wrote:
>
> In version 1.4.4, when canonicalizing the subtree "//xades:SignedProperties"
> with c14N11 (using the supplied sample code), the result is the following:
>
> ********* Input ***********
> <einvoiceContainer>
>  <unsignedData/>
>  <signedData Id="einvoice">
>    Hello
>  </signedData>
>  <ds:Signature Id="signature" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
> xmlns:xades="http://uri.etsi.org/01903/v1.3.2#">
>    <ds:Object>
>      <xades:QualifyingProperties Id="QualifyingPropertiesId"
> Target="#signature">
>        <xades:SignedProperties Id="XAdESSignedProps"/>
>      </xades:QualifyingProperties>
>    </ds:Object>
>  </ds:Signature>
> </einvoiceContainer>
>
> ********* Output ***********
> <xades:SignedProperties xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
> xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Id="XAdESSignedProps"
> Target="#signature"></xades:SignedProperties>
>
>
> ********* Question **********
> Shouldn't only attributes in the xml namespace (i.e. xml:lang and xml:space)
> be propagated into the canonicalized document subset ? Why is the 'Target'
> attribute from the 'xades:QualifyingProperties' node also propagated into
> 'xades:SignedProperties' ? Am i missing something in the spec ?
>
>
> Kind regards
>
> --
> Daniel
> --
> View this message in context: http://old.nabble.com/c14n11-bug--tp31448658p31448658.html
> Sent from the Apache XML - Security - Dev mailing list archive at Nabble.com.
>
>

Mime
View raw message