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)

Reply via email to