You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2011/04/06 12:21:05 UTC

[jira] [Commented] (AXIOM-360) OMNodeImpl fails to properly set parent for insertSiblingBefore

    [ https://issues.apache.org/jira/browse/AXIOM-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016331#comment-13016331 ] 

Andreas Veithen commented on AXIOM-360:
---------------------------------------

Eric, can you submit a test case and a patch?

> 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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org