You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andrei Shakirin (JIRA)" <ji...@apache.org> on 2018/04/04 20:48:00 UTC

[jira] [Created] (CXF-7700) LoggingOutInterceptor doesn't writes message body if encoding isn't set

Andrei Shakirin created CXF-7700:
------------------------------------

             Summary: LoggingOutInterceptor doesn't writes message body if encoding isn't set
                 Key: CXF-7700
                 URL: https://issues.apache.org/jira/browse/CXF-7700
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 3.1.15
            Reporter: Andrei Shakirin


Fix for logging encoding made for [CXF-7033|https://issues.apache.org/jira/browse/CXF-7033] introduced following code into AbstractLoggingInterceptor:

{code}
StaxUtils.copy(new StreamSource(new InputStreamReader(in, encoding)), xwriter);
{code}

The problem is that in case if encoding=null (it is often the case in outbound chain), the InputStreamReader throws NLP preventing write message body into the log file.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)