DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42886>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42886

           Summary: Error when removing encrypted content in 1.4.1
           Product: Security
           Version: Java 1.4.1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: C++ Canonicalization
        AssignedTo: security-dev@xml.apache.org
        ReportedBy: [EMAIL PROTECTED]


The methode XMLCipher.removeContent(Node node) should remove all the children of
the given Node. However the loop is written so that only only half of the
children are removed.

This method should be replaced by the removeContent() method of the 1.3 version 
:
private void removeContent(Node node) {
      NodeList list = node.getChildNodes();
      if (list.getLength() > 0) {
          Node n = list.item(0);
          if (null != n) {
              n.getParentNode().removeChild(n);
          }
          removeContent(node);
      }
    }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to