Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7138

Logging interceptor is logging binary content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 3.1.7
    • None
    • logging
    • None
    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgorgon Marcin GorgoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: