Closed GoogleCodeExporter closed 9 years ago
OK, some more information.
Signing the following XML is causing validation failure:
<?xml version="1.0"?>
<yeti:YETI Version="1.0" xmlns:yeti="http://something.com/yeti">
</yeti:YETI>
Signing the following passes validation:
<?xml version="1.0"?>
<yeti:YETI xmlns:yeti="http://something.com/yeti">
</yeti:YETI>
It seems the Version attribute is breaking something, but why?
Original comment by rafalg...@gmail.com
on 8 Jan 2013 at 9:48
Another info :)
The digest generated during signing process is made from:
<yeti:YETI Version="1.0" xmlns:yeti="http://something.com/yeti"></yeti:YETI>
However, the digestedInputStream indicates that the digesting was made on the
following:
<yeti:YETI xmlns:yeti="http://something.com/yeti" Version="1.0"></yeti:YETI>
The order of attributes is wrong. Is there anything I can do with this?
Original comment by rafalg...@gmail.com
on 8 Jan 2013 at 2:33
I solved the problem by making the DocumentBuilderFactory namespace aware, code
below:
dbFactory.setNamespaceAware(true);
Original comment by rafalg...@gmail.com
on 9 Jan 2013 at 9:51
I was just about to check this. It makes sense, since the namespaces nodes
won't be there or will be processed differently (order and so on).
Original comment by luis.fgoncalv
on 9 Jan 2013 at 10:45
Original issue reported on code.google.com by
rafalg...@gmail.com
on 8 Jan 2013 at 8:22