You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Thomas Skjølberg (JIRA)" <ji...@apache.org> on 2015/05/27 19:40:17 UTC

[jira] [Created] (CXF-6423) PrettyLoggingFilter tests and improvements

Thomas Skjølberg created CXF-6423:
-------------------------------------

             Summary: PrettyLoggingFilter tests and improvements
                 Key: CXF-6423
                 URL: https://issues.apache.org/jira/browse/CXF-6423
             Project: CXF
          Issue Type: Improvement
            Reporter: Thomas Skjølberg
            Priority: Minor


Improvements for PrettyLoggingFilter in the cxf-rt-features-logging module: 
1. use a StringReader instead of getting bytes from a String and using an InputStream (capture encoding issues at an eariler stage)
2. add parser exception handling based on whether the payload is truncated or not; return original XML if deemed invalid
3. do not call XMLStreamWriter.close() before getting contents for truncated or invalid XML because some writers misbehave. 
4.construct output StringWriter with a size based on the raw XML string size
5.additional test cases 




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)