Akitoshi Yoshida created CAMEL-9774:
---------------------------------------
Summary: CXFPayload may lose CDATA sections under stream caching
Key: CAMEL-9774
URL: https://issues.apache.org/jira/browse/CAMEL-9774
Project: Camel
Issue Type: Bug
Components: camel-cxf
Affects Versions: 2.16.2
Reporter: Akitoshi Yoshida
Assignee: Akitoshi Yoshida
Fix For: 2.16.3
CAMEL-8410 introduced CachedCXFPayload to add stream-caching support to
CXFPayload. This may use during its sequence of conversions the default
java.xml.transform.Transformer to convert javax.xml.transform.stax.StAXSource
to SAX, which will then drop CDATA sections because its CDATA handling is empty.
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7u40-b43/com/sun/org/apache/xalan/internal/xsltc/trax/StAXStream2SAX.java#StAXStream2SAX.handleCDATA%28%29
To avoid this, CachedCXFPayload can use the conversion utility already included
in CXF.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)