On Thu, 2004-11-18 at 10:08 +0100, Raul Benito wrote:
> > On Wed, 2004-11-17 at 22:43 -0600, Samuel Meder wrote:
> >> This may very well have fixed one of the problems, but it still did not
> fix the signature mismatch error I'm getting due to c14n. I'll follow
> up with a lot more detail in a bit.
> >
> > I've attached the following:
> >
> > assertion_service.xml - the signed saml assertion as created by the
> service before sending using axis
> > assertion_client.xml - the assertion as received by the client
> > assertion_transformed_server.xml - the assertion on service with all
> transforms applied
> > assertion_transformed_client.xml - the assertion on client with all
> transforms applied
> >
> > The assertions were dumped using:
> >
> > try
> > {
> > System.out.println("After Transforms:\n\n");
> > System.out.println(new
> > String(sig.getSignedInfo().getReferencedContentAfterTransformsItem(0).getBytes()));
> > }
> > catch(IOException e)
> > {
> >
> > }
> >
> > Obviously something is still very wrong.
> >
>
> Thanks for this but the output attached is NOT from the patch I'll send
> you, if you apply the patch the spurius xmlns="" definitions disappear,
> but there were still some problems in my patch (and they are the xmlns=""
> in Condition and other several elements).
Yup, I'm sorry, I ended up copying the new jar into the wrong directory.
Stupid mistake.
> It follows a patch that fix that also, please apply and when I'll arraive
> home I will commit myself(Perhaps there can be little syntax error in the
> samll patch as I need to retype from my laptop to the desktop without
> compiled it again so caveat emptor).
The new patch makes things work for me.
Many thanks,
/Sam
> Thanks,
>
> Raul
> http://r-bg.com
>
> Index:
> src/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java
> =================================================================== RCS
> file:
> /home/cvspublic/xml-security/src/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java,v
> retrieving revision 1.17
> diff -u -r1.17 Canonicalizer20010315Excl.java
> ---
> src/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java
> 24
> Sep 2004 20:54:29 -0000 1.17
> +++
> src/org/apache/xml/security/c14n/implementations/Canonicalizer20010315Excl.java
> 18
> Nov 2004 07:58:02 -0000
> @@ -262,7 +262,7 @@
> }
> }
> }
> - if (!xmlnsDef ) {
> + if (!xmlnsDef && isOutputElement && (E.getNamespaceURI()==null)
> ) {
> ns.addMapping(XMLNS,"",nullNode);
> }
>
>
>
>
>