cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] [Commented] (CXF-6100) Include the header 'content-encoding' during logging on client side
Date Thu, 13 Nov 2014 01:30:35 GMT


Daniel Kulp commented on CXF-6100:

No, the header needs to be removed.   There are other interceptors and such that may look
at the Content-Encoding header to see what the actual contents of the InputStream contain
and if the Content-Encoding is still set to gzip, but the InputStream is no longer gzip data,
that can and will cause issues.  The headers should represent the state of what's in the content
of the message at that point in time.   You COULD put the LogginInInteceptor before the GZIPInInterceptor,
but then you would have binary data logged, not the uncompressed soap message.

> Include the header 'content-encoding' during logging on client side
> -------------------------------------------------------------------
>                 Key: CXF-6100
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 3.0.2
>            Reporter: member sound
>            Priority: Minor
> From the client perspective:
> LogginInInterceptor and GZIPInInterceptor in combination will log the xml responses from
> By debugging I know now that the "content-encoding" header is explicitly removed by the
> {|borderStyle=solid}
> // remove content encoding header as we've now dealt with it
> if (key.equalsIgnoreCase("Content-Encoding")) {
>        protocolHeaders.remove(key);
>        break;
> }
> {code}
> I think for logs quality it would be much better to leave the header as it is. Because
one could then directly see which xml responses have been reveived compressed. And the statement
"remove content encoding as we've now dealt with it", I think when the logged xml is human
readably, it should be clear to the user that obviously the application has dealt with the
> So the removal of the header does not add extra information here, but prevents many users
from clearly seeing the real xml response including all headers.
> (I searched the net and came to numerous threads and users that claimed the same issue
"how can I know my received xml response was gzip compressed?", but non of them had a solution).
> It would be great if you could discuss to take out the explicit header removal statement.

This message was sent by Atlassian JIRA

View raw message