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

LoggingOutInterceptor doesn't write message body if encoding wasn't set

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.15
    • 3.1.16, 3.2.5
    • Core
    • None
    • Unknown

    Description

      Fix for logging encoding made for CXF-7033 introduced following code into AbstractLoggingInterceptor:

      StaxUtils.copy(new StreamSource(new InputStreamReader(in, encoding)), xwriter);
      

      The problem is that in case if encoding=null (it is often the case in outbound chain), the InputStreamReader throws NLP preventing write message body into the log file.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ashakirin Andrei Shakirin
            ashakirin Andrei Shakirin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment