[
https://issues.apache.org/jira/browse/CXF-7138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15673556#comment-15673556
]
Sergey Beryozkin commented on CXF-7138:
---------------------------------------
I think this issue needs to be resolved, please do it - as you've confirmed the
binary content won't be logged for your case.
The issue of selectively logging individual multipart parts is a different
issue altogether. Please open a new request which I'd qualify as a Wish or
Improvement. IMHO it will be hard to do right- one would need to parse the
whole multipart payload, decide which parts are non-binary, log them, ignore
binary ones. How and if it will be done is a diff discussion though to this
particular issue IMHO
thanks
> 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,
> even when showBinaryContent is set to false (which is it's default value).
> 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 enforces users writting their own filters, which should be provided by
> default, when showBinaryContent is set to false.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)