OMNodeImpl fails to properly set parent for insertSiblingBefore
---------------------------------------------------------------

                 Key: AXIOM-360
                 URL: https://issues.apache.org/jira/browse/AXIOM-360
             Project: Axiom
          Issue Type: Bug
          Components: LLOM
    Affects Versions: 1.2.11
            Reporter: Eric Johnson


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to