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

SoapElementImpl.copyContents skips child elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.4
    • 1.5.5, 1.6.0
    • saaj
    • None

    Description

      When adding elements using appendChild, I lose elements

      It seems to boil down to

      == org.apache.axis2.saaj.SOAPElementImpl lines 936 - 940
      NodeList children = child.getChildNodes();
      for (int i = 0; i < children.getLength(); i++)

      { Node node = children.item(i); childEle.appendChild(node); }

      ==

      The appended child seems to be removed from the original, causing children.getLength() to be smaller every iteration, causing elements to be missed.

      I did not experience this problem in 1.5

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: