ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIOM-432) Updating the last child is not correct unless we are replacing the last child
Date Thu, 12 Jul 2012 17:54:34 GMT

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

Andreas Veithen commented on AXIOM-432:
---------------------------------------

Do you have a test case to reproduce the issue?

Can you specify the Axiom version with which the issue occurs (and to which the line number
in ParentNode applies)?
                
> Updating the last child is not correct unless we are replacing the last child
> -----------------------------------------------------------------------------
>
>                 Key: AXIOM-432
>                 URL: https://issues.apache.org/jira/browse/AXIOM-432
>             Project: Axiom
>          Issue Type: Bug
>          Components: DOOM
>            Reporter: detelin20@yahoo.com
>
> I have a simple policy which encrypts a header. When the WSS for J decrypts I could see
in the Dom model the decrypted header. Actually I have 3 headers of which one is encrypted
in the Dom model. I see all the 3 headers after it is decrypted.
> But when it is converted into the OOM model some of the headers disappear.
> soapHeader.addHeaderBlock(element.getLocalName(), element.getNamespace()); statement
> I noticed that the lastChild field of the SOAPHeader block points to a header element
somewhere in the middle of the list instead of the last one
> meaning if the Header block contains 3 headers HDR1 -> HDR2 -> HDR3
> then the lastChild should point to HDR3; instead it points to HDR2
> so when a new header HDR4 is added, instead of the list becoming HDR1 -> HDR2 ->
HDR3 -> HDR4
> it becomes HDR1 -> HDR2 -> HDR4 skipping HDR3
> The defect is in org.apache.axiom.om.impl.dom.ParentNode.replaceChild(Node, Node) ,line
414, where
> updating the last child is not correct unless we are replacing the last child.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


Mime
View raw message