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

LoggingInterceptors do not handle messages with non-UTF-8 encoding properly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.7
    • Fix Version/s: 3.1.8, 3.0.11, 3.2.0
    • Component/s: logging
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If the HTTP communication uses non-UTF-8 encoding, special characters (such as the German umlauts) cause dropping the message payload from log output when prettyLogging is enabled.
      Example message:

      POST /service HTTP/1.1
      Content-Type: application/soap+xml; action="service-action"; charset=ISO-8859-1
      Accept: */*
      User-Agent: Apache CXF 3.1.6
      Cache-Control: no-cache
      Pragma: no-cache
      Host: host:8081
      Connection: keep-alive
      Content-Length: 2072
      
      <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header>...</soap:Header><soap:Body>...<lastName>Müller</lastName>...</soap:Body></soap:Envelope>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergey_beryozkin Sergey Beryozkin
                Reporter:
                dbaumann Daniel Baumann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: