You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by vi...@apache.org on 2005/09/14 09:44:35 UTC
cvs commit: xml-security/src/org/apache/xml/security/c14n/implementations CanonicalizerBase.java
vishal 2005/09/14 00:44:35
Modified: src/org/apache/xml/security/c14n/implementations
CanonicalizerBase.java
Log:
Fixed bug #36638 (Canonicalization of a DocumentFragment node always throws a c14n exception).
Revision Changes Path
1.23 +5 -5 xml-security/src/org/apache/xml/security/c14n/implementations/CanonicalizerBase.java
Index: CanonicalizerBase.java
===================================================================
RCS file: /home/cvs/xml-security/src/org/apache/xml/security/c14n/implementations/CanonicalizerBase.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- CanonicalizerBase.java 10 Aug 2005 18:22:44 -0000 1.22
+++ CanonicalizerBase.java 14 Sep 2005 07:44:35 -0000 1.23
@@ -232,11 +232,11 @@
case Node.ENTITY_NODE :
case Node.NOTATION_NODE :
- case Node.DOCUMENT_FRAGMENT_NODE :
case Node.ATTRIBUTE_NODE :
// illegal node type during traversal
throw new CanonicalizationException("empty");
-
+
+ case Node.DOCUMENT_FRAGMENT_NODE :
case Node.DOCUMENT_NODE :
ns.outputNodePush();
//currentNode = currentNode.getFirstChild();
@@ -401,11 +401,11 @@
case Node.ENTITY_NODE :
case Node.NOTATION_NODE :
- case Node.DOCUMENT_FRAGMENT_NODE :
case Node.ATTRIBUTE_NODE :
// illegal node type during traversal
throw new CanonicalizationException("empty");
-
+
+ case Node.DOCUMENT_FRAGMENT_NODE :
case Node.DOCUMENT_NODE :
ns.outputNodePush();
//currentNode = currentNode.getFirstChild();