Dear Berin, dear all,

Now could successfully verify signed files which had "cascaded namespace attributes".
The reason for the earlier failure seems to be when verifying larger (>40kB) signed files.


I got another (also Apache-XMLSignature-1.0.4) based tool from a colleague which gives some more detailed error messages. When verifying larger files I get:

java.io.UTFDataFormatException: invalid byte 1 -f 1-byteUTF-8 sequence (0xbf)
at org.apache.xerces.impl.io.UTF8Reader.read(UTF8Reader.java:678).


Is this a known issue ?
Any idea what is wrong ?

When I decrease the file size by deleting elements, resign, and then validate again, everything goes fine. The critical file size seems to be around 40kB.

Best regards

JozefAerts
Computer Chemistry Consultancy

----------------------------




From: Berin Lautenbach <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: going from signing xml file with DTD to signing xml file with Schema
Date: Sat, 21 Feb 2004 20:41:25 +1100


Jozef Aerts - Comp.Chem.Cons. - XML4Pharma wrote:
Dear Berin,

Many thanks.
Does the cascading down HAVE to happen ? Or can it be avoided ?

As I understand it (and maybe someone else can comment here!) - yes it does.


The C++ library bypasses this by keeping a record of the cascaded namespace attributes and then removing them after canonicalisation, but that hasn't been built into the Java library (yet... :>).


If it cannot be avoided, is there a way to "uncascade" it after signing, or at verification time ?

Not that I am aware of.



Unfortunately, the code from "the code below" was missing in your mail. Could you send it to me ?

Apologies - I meant your code (it was originally "below" when I quoted :>.) SO the question was - are you trying to validate a previously signed document that you have now added the schema attribute to, or are you signing a "schema document" and then the validation is failing? If the former, then the validation *should* fail. If the latter, then the validation should succeed, so we need to track down the problem.



_________________________________________________________________
Play online games with your friends with MSN Messenger http://messenger.msn.nl/




Reply via email to