You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Marcin Gorgoń (JIRA)" <ji...@apache.org> on 2016/11/16 17:51:58 UTC

[jira] [Created] (CXF-7138) Logging interceptor is logging binary content

Marcin Gorgoń created CXF-7138:
----------------------------------

             Summary: Logging interceptor is logging binary content
                 Key: CXF-7138
                 URL: https://issues.apache.org/jira/browse/CXF-7138
             Project: CXF
          Issue Type: Bug
          Components: logging
    Affects Versions: 3.1.7
            Reporter: Marcin Gorgoń


LoggingInInterceptor and LoggingOutInterceptor are dumping binary payloads, event if showBinaryContent is set to false.

Actually, AbstractLoggingInterceptor has defined only few binary content media types:

        BINARY_CONTENT_MEDIA_TYPES.add("application/octet-stream");
        BINARY_CONTENT_MEDIA_TYPES.add("image/png");
        BINARY_CONTENT_MEDIA_TYPES.add("image/jpeg");
        BINARY_CONTENT_MEDIA_TYPES.add("image/gif");

When ZIP or PDF files are transmitted in XOP payload, they are not recognized as binary content and are logged.



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