[
https://issues.apache.org/jira/browse/CXF-7138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15673427#comment-15673427
]
Marcin Gorgoń edited comment on CXF-7138 at 11/17/16 11:18 AM:
---------------------------------------------------------------
[~sergeyb] thank you for the hint, but it will dissable logging whole SOAP
entirely:
---------------------------
ID: 5
Address: http://localhost:8080/services/RepoEndpointImpl
Encoding: UTF-8
Http-Method: POST
Content-Type: multipart/related; type="application/xop+xml";
boundary="uuid:dfdf5c3a-f3e9-4ca5-be8e-c1dd5540ed8d";
start="<[email protected]>"; start-info="text/xml"
Headers: {Accept=[*/*], SOAPAction=[""]}
Messages: --- Multipart Content ---
--------------------------------------
It would be nice to have an option to log SOAP, but skip MTOM attachments:
ID: 6
Address: http://localhost:8080/services/RepoEndpointImpl
Encoding: UTF-8
Http-Method: POST
Content-Type: multipart/related; type="application/xop+xml";
boundary="uuid:06ea7341-ff34-4a83-9327-b2d4b78f4057";
start="<[email protected]>"; start-info="text/xml"
Headers: {Accept=[*/*], SOAPAction=[""]}
Payload: --uuid:06ea7341-ff34-4a83-9327-b2d4b78f4057
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <[email protected]>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">/......................................</soap:Envelope>
--uuid:06ea7341-ff34-4a83-9327-b2d4b78f4057
Content-Type: application/vnd.ms-word.document.12
Content-Transfer-Encoding: binary
Content-ID: <[email protected]>
--- BINARY PAYLOAD ---
was (Author: mgorgon):
[~sergeyb] thank you for the hint, but it will dissable logging whole SOAP
entirely:
---------------------------
ID: 5
Address: http://localhost:8080/services/RepoEndpointImpl
Encoding: UTF-8
Http-Method: POST
Content-Type: multipart/related; type="application/xop+xml";
boundary="uuid:dfdf5c3a-f3e9-4ca5-be8e-c1dd5540ed8d";
start="<[email protected]>"; start-info="text/xml"
Headers: {Accept=[*/*], SOAPAction=[""]}
Messages: --- Multipart Content ---
--------------------------------------
It would be nice to have an option to log SOAP, but skip MTOM attachments.
> 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)