Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AA9E4200BD4 for ; Wed, 16 Nov 2016 18:57:26 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A9589160B13; Wed, 16 Nov 2016 17:57:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 06841160B08 for ; Wed, 16 Nov 2016 18:57:25 +0100 (CET) Received: (qmail 72815 invoked by uid 500); 16 Nov 2016 17:57:16 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 72800 invoked by uid 99); 16 Nov 2016 17:57:16 -0000 Received: from Unknown (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2016 17:57:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 65D662C2B10 for ; Wed, 16 Nov 2016 17:56:58 +0000 (UTC) Date: Wed, 16 Nov 2016 17:56:58 +0000 (UTC) From: =?utf-8?Q?Marcin_Gorgo=C5=84_=28JIRA=29?= To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-7138) Logging interceptor is logging binary content MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 16 Nov 2016 17:57:26 -0000 [ https://issues.apache.org/jira/browse/CXF-7138?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Marcin Gorgo=C5=84 updated CXF-7138: ------------------------------- Description:=20 LoggingInInterceptor and LoggingOutInterceptor are dumping binary payloads,= even when showBinaryContent is set to false. Actually, AbstractLoggingInterceptor has defined only few binary content me= dia 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 recogniz= ed 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. was: LoggingInInterceptor and LoggingOutInterceptor are dumping binary payloads,= event if showBinaryContent is set to false. Actually, AbstractLoggingInterceptor has defined only few binary content me= dia 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 recogniz= ed 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. > 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=C5=84 > > LoggingInInterceptor and LoggingOutInterceptor are dumping binary payload= s, even when 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 recogn= ized 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)