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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.7
    • 3.1.8, 3.0.11, 3.2.0
    • logging
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: