Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-360

OMNodeImpl fails to properly set parent for insertSiblingBefore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.2.11
    • None
    • LLOM
    • None

    Description

      When attempting to use Axiom with the https://code.google.com/a/apache-extras.org/p/santuario-genxdm/, I noticed a test case that failed after trying to encrypt, then decrypt XML in the same document.

      Turns out it was failing because the parent OMContainer was not being set properly on the child in OMNodeImpl.insertSiblingBefore().

      If you look at OMNodeImpl.insertSiblingAfter(), it has a line:

      ((OMNodeEx) sibling).setParent(parent);

      However, insertSiblingBefore() sets the parent differently, and misses the case where there is no previous sibling.

      I marked this as a major bug, because the only way I see to work around the issue is to write to the OMNodeEx interface, an internal implementation detail.

      Attachments

        Activity

          People

            veithen Andreas Veithen
            eric@tibco.com Eric Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: