[ 
https://issues.apache.org/jira/browse/AXIOM-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Veithen resolved AXIOM-433.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.14

This issue has been fixed very recently:

http://svn.apache.org/viewvc?view=revision&revision=1357344
                
> SOAPBodyImpl class from the APIs has got a flag for check hasFault and the 
> flag is not synchronized with the SOAP Body's content.
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIOM-433
>                 URL: https://issues.apache.org/jira/browse/AXIOM-433
>             Project: Axiom
>          Issue Type: Bug
>          Components: DOOM, LLOM
>    Affects Versions: 1.2.13
>            Reporter: [email protected]
>            Assignee: Andreas Veithen
>             Fix For: 1.2.14
>
>
> There is a use case where the implementation needs to remove the contents of 
> the SOAPBody.
> However there is a flag within the SOAPBodyImpl which checks whether the 
> SOAPBody contains a SOAPFault, and this flag is not updated with the removal 
> of contents from under the SOAPBody. 
> The API we use is as follows:
> to empty the contents of the SOAPBody
> ----------------------------------
> SOAPBody soapBody = envelope.getBody();
> Iterator<OMNode> iter = soapBody.getChildren();
> while (iter.hasNext()){
>    iter.next().detach();
> }
> -----------------------------------
> to add SOAPFault
> --------------------------------
> ((SOAPEnvelope)soapMessage).getBody().addFault();
> --------------------------------
> So basically the issue was the flag wasn't getting updated when we empty a 
> SOAP message and then add the SOAPFault.
> My recommendation will be not to use the fault flag in the SOAP body at all, 
> and always check the actual everytime the call is made. This will save us 
> from any sort of non-consistent state between the flag and the actual content.

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to