[jira] [Commented] (CXF-7666) Binary multipart payload are shown even if logBinary Flag is set to false
[ https://issues.apache.org/jira/browse/CXF-7666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17266925#comment-17266925 ] Stephen Patten commented on CXF-7666: - Same issue here, would like to keep logging the MTOM request/response except the binary property. The CXF DataHandler on the server can receive base64 encoded, and byte[] documents, which are processed and returned by yet another DataHandler that support any number of media-types, typically "application/octet-stream", "image/tiff", "application/pdf" . The code below shows an example service response and the "binary" property is this http://www.w3.org/2004/08/xop/include; href="cid:ca829d80-30e5-40f8-a841-66b62f1ece42-2@PLFileNetWS"/> {code:java} 2021-01-17 15:47:13.006 INFO [,0a70f2ff4553a887,0a70f2ff4553a887] 67556 --- [nio-8443-exec-6] o.a.c.services.PLFileNetWSSoap.RESP_OUT : RESP_OUT Address: https://localhost:8443/fnws/DocumentServices/v3 Content-Type: multipart/related; type="application/xop+xml"; boundary="uuid:03854f91-65a2-4e63-b5f5-9f36543735cf"; start=""; start-info="application/soap+xml" ResponseCode: 200 ExchangeId: 62c2ef67-4e44-490e-9743-dab10b2f3617 ServiceName: PLFileNetWS PortName: PLFileNetWSSoap12 PortTypeName: PLFileNetWSSoap Headers: {} Payload: --uuid:03854f91-65a2-4e63-b5f5-9f36543735cf Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml" Content-Transfer-Encoding: binary Content-ID: http://www.w3.org/2003/05/soap-envelope;>File0http://www.w3.org/2001/XMLSchema-instance; xmlns:xs="http://www.w3.org/2001/XMLSchema; xsi:type="xs:string">MED2jaleh - recent.TIFDateCreatedhttp://www.w3.org/2001/XMLSchema-instance; xmlns:xs="http://www.w3.org/2001/XMLSchema; xsi:type="xs:string">2020-12-14ContentSizehttp://www.w3.org/2001/XMLSchema-instance; xmlns:xs="http://www.w3.org/2001/XMLSchema; xsi:type="xs:string">533284.0MimeTypehttp://www.w3.org/2001/XMLSchema-instance; xmlns:xs="http://www.w3.org/2001/XMLSchema; xsi:type="xs:string">image/tiffClassDescriptionhttp://www.w3.org/2001/XMLSchema-instance; xmlns:xs="http://www.w3.org/2001/XMLSchema; xsi:type="xs:string">New_BusinessF_DOCNUMBERhttp://www.w3.org/2001/XMLSchema-instance; xmlns:xs="http://www.w3.org/2001/XMLSchema; xsi:type="xs:string">6024255Idhttp://www.w3.org/2001/XMLSchema-instance; xmlns:xs="http://www.w3.org/2001/XMLSchema; xsi:type="xs:string">{C0B66276--CF18-8300-F34099B13C2A}DocumentTitlehttp://www.w3.org/2001/XMLSchema-instance; xmlns:xs="http://www.w3.org/2001/XMLSchema; xsi:type="xs:string">6024255http://www.w3.org/2004/08/xop/include; href="cid:ca829d80-30e5-40f8-a841-66b62f1ece42-2@PLFileNetWS"/> --uuid:03854f91-65a2-4e63-b5f5-9f36543735cf Content-Type: image/tiff Content-Transfer-Encoding: binary Content-ID: X � u Z � � M 5 � � � C I � � � � z i � s � b c � � ^ � } � � � > V W � � � 5 O � � � w # � � ` L � � � _ � � � r V G � � i M � � . c T � ��� �� ,!@\��0��i�䁒���ɏ�?�'���_�lk���Cg����_� � ,fنl�D2(�� ���J�K��K���1%�(�K\DDG�� @��� ���u��b� �A {code} Yes, I did add image/tiff but to no avail. Thank you, Stephen > Binary multipart payload are shown even if logBinary Flag is set to false > - > > Key: CXF-7666 > URL: https://issues.apache.org/jira/browse/CXF-7666 > Project: CXF > Issue Type: Bug > Components: logging >Affects Versions: 3.2.1 >Reporter: Mohamed Moez MANSOURI >Priority: Major > > ** > Iam using > {code:java} > > org.apache.cxf > cxf-rt-features-logging > 3.2.1 > > {code} > And i still have logs of binary parts of a multipart message (image/png) even > if the flag "logBinary" of AbstractLoggingInterceptor is false by default. > Can you help me ? I would like that if that flag is false , it applies also > to the inner parts of a multipart message. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CXF-7666) Binary multipart payload are shown even if logBinary Flag is set to false
[ https://issues.apache.org/jira/browse/CXF-7666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16390879#comment-16390879 ] Dennis Kieselhorst commented on CXF-7666: - Hmm currently the content type is used to check if content should be logged or not. Do you have a proposal how to change that? Please take a look at [https://github.com/apache/cxf/blob/master/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java] and feel free to submit a PR [https://github.com/apache/cxf/pulls]. > Binary multipart payload are shown even if logBinary Flag is set to false > - > > Key: CXF-7666 > URL: https://issues.apache.org/jira/browse/CXF-7666 > Project: CXF > Issue Type: Bug > Components: logging >Affects Versions: 3.2.1 >Reporter: Mohamed Moez MANSOURI >Priority: Major > > ** > Iam using > {code:java} > > org.apache.cxf > cxf-rt-features-logging > 3.2.1 > > {code} > And i still have logs of binary parts of a multipart message (image/png) even > if the flag "logBinary" of AbstractLoggingInterceptor is false by default. > Can you help me ? I would like that if that flag is false , it applies also > to the inner parts of a multipart message. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (CXF-7666) Binary multipart payload are shown even if logBinary Flag is set to false
[ https://issues.apache.org/jira/browse/CXF-7666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16389406#comment-16389406 ] Mohamed Moez MANSOURI commented on CXF-7666: Hello Dennis, thank you for your answer, but putting logMultipart flag to "false" is not really what i want since it will make the multipart messages not logged at all. What i want is to not log the binary part of a multipart message. > Binary multipart payload are shown even if logBinary Flag is set to false > - > > Key: CXF-7666 > URL: https://issues.apache.org/jira/browse/CXF-7666 > Project: CXF > Issue Type: Bug > Components: logging >Affects Versions: 3.2.1 >Reporter: Mohamed Moez MANSOURI >Priority: Major > > ** > Iam using > {code:java} > > org.apache.cxf > cxf-rt-features-logging > 3.2.1 > > {code} > And i still have logs of binary parts of a multipart message (image/png) even > if the flag "logBinary" of AbstractLoggingInterceptor is false by default. > Can you help me ? I would like that if that flag is false , it applies also > to the inner parts of a multipart message. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (CXF-7666) Binary multipart payload are shown even if logBinary Flag is set to false
[ https://issues.apache.org/jira/browse/CXF-7666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16386653#comment-16386653 ] Dennis Kieselhorst commented on CXF-7666: - There is also a logMultipart flag. Have you tried it? > Binary multipart payload are shown even if logBinary Flag is set to false > - > > Key: CXF-7666 > URL: https://issues.apache.org/jira/browse/CXF-7666 > Project: CXF > Issue Type: Bug > Components: logging >Affects Versions: 3.2.1 >Reporter: Mohamed Moez MANSOURI >Priority: Major > > ** > Iam using > {code:java} > > org.apache.cxf > cxf-rt-features-logging > 3.2.1 > > {code} > And i still have logs of binary parts of a multipart message (image/png) even > if the flag "logBinary" of AbstractLoggingInterceptor is false by default. > Can you help me ? I would like that if that flag is false , it applies also > to the inner parts of a multipart message. -- This message was sent by Atlassian JIRA (v7.6.3#76005)