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

Hudson commented on AXIOM-240:
------------------------------

Integrated in ws-axiom-trunk #540 (See 
[https://builds.apache.org/job/ws-axiom-trunk/540/])
    AXIOM-240: Reverted part of r688927: XOP no longer requires special 
attention since AXIOM-255 and AXIOM-335 have been fixed.

veithen : 
Files : 
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java


> XOP:Include information is not retained by OMElement clone()
> ------------------------------------------------------------
>
>                 Key: AXIOM-240
>                 URL: https://issues.apache.org/jira/browse/AXIOM-240
>             Project: Axiom
>          Issue Type: Bug
>            Reporter: Rich Scheuerle
>            Assignee: Rich Scheuerle
>            Priority: Critical
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Problem Summary:
>   The OMElement.clone() method makes a clone of the current element.  
> However, if the OMElement contains nested XOP:Include nodes, the information 
> (datahandlers, content-ids) are not preserved.   In fact, the attachments are 
> lost completely.
> Solution:
>    Currently, the clone() implementation does two things:
>         (A) Gets a XMLStreamReader to read the events from the source element.
>         (B) Constructs a StAXOMBuilder to create the new cloned tree.
>        (A) will be changed to changed to query the source builder.  If it is 
> XOPAware, then the XMLStreamReader will be toggled to deliver XOP optimized 
> events.
>         (B) If the source builder is XOPAware, then an XOPAwareOMBuilder will 
> be created to build the target tree.  
>        This will guarantee that the XOP include information (datahandlers, 
> content-ids) are retained.
> I am also including a validation test to verify the new changes.
> I will commit the change after some additional testing

--
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