Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4868

SOAPElement#removeChild doesn't work correctly with text nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 1.5.3, 1.6.0
    • saaj
    • None

    Description

      This issue was originally reported in [1].

      Original problem description:

      [quote]
      i have a problem using saaj implementation of AXIS2 (1.5.2) with xmlsec: after encrypt a node it delete it's original content with this algorithm:

      while (node.hasChildNodes()) {
      node.removeChild(node.getFirstChild());
      }

      that fail with TextNodes.
      [/quote]

      This code indeed triggers a DOM NOT_FOUND_ERR exception with Axis2's SAAJ implementation.

      [1] http://markmail.org/thread/lcma3lp3jnfmp476

      Attachments

        Activity

          People

            veithen Andreas Veithen
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: