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

Option to customize BINARY_CONTENT_MEDIA_TYPES in DefaultLogEventMapper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.7
    • 3.3.1
    • JAX-RS
    • None
    • Unknown

    Description

      DefaultLogEventMapper contains hard coded binary type

      // code placeholder
      static {
              BINARY_CONTENT_MEDIA_TYPES = new HashSet<>();
              BINARY_CONTENT_MEDIA_TYPES.add("application/octet-stream");
              BINARY_CONTENT_MEDIA_TYPES.add("application/pdf");
              BINARY_CONTENT_MEDIA_TYPES.add("image/png");
              BINARY_CONTENT_MEDIA_TYPES.add("image/jpeg");
              BINARY_CONTENT_MEDIA_TYPES.add("image/gif");
          }
      

         And all other binary types like application/vnd.oasis.opendocument.spreadsheet are logged.

      There should be option to customize this list

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            slavb18 Vjacheslav Borisov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: