You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2017/04/03 18:29:41 UTC

[jira] [Resolved] (CXF-7058) Extra CDATA elements added on long CDATA payload

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

Daniel Kulp resolved CXF-7058.
------------------------------
       Resolution: Fixed
         Assignee: Daniel Kulp
    Fix Version/s: 3.1.8
                   3.0.13

> Extra CDATA elements added on long CDATA payload
> ------------------------------------------------
>
>                 Key: CXF-7058
>                 URL: https://issues.apache.org/jira/browse/CXF-7058
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.7.18, 3.1.7
>         Environment: All
>            Reporter: Rodrigo Merino
>            Assignee: Daniel Kulp
>             Fix For: 3.0.13, 3.1.8
>
>         Attachments: headerSoapReqLongCdata.xml
>
>
> When calling StaxUtils.copy() with a source xml that contains a long CDATA section, that long CDATA is sent in chunks to the writer, with each chunk being wrapped in a CDATA independently.
> For instance, {code}<![CDATA[a..z]]>{code} in the source ends in the destination as {code}<![CDATA[a.]]><![CDATA[.z]]>{code}
> This can be verified by running the test org.apache.cxf.staxutils.StaxUtilsTest.testCopy() with the attached xml file (headerSoapReqLongCdata.xml).
> I reported this initially to woodstox (https://github.com/FasterXML/woodstox/issues/21 and https://github.com/FasterXML/woodstox/issues/22),, but from Tatu's last answer (https://github.com/FasterXML/woodstox/issues/22#issuecomment-246254486) is is something that should be handled in CXF's StaxUtils.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)