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

PrettyLoggingFilter tests and improvements

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Moderate

      Description

      Improvements for PrettyLoggingFilter in the cxf-rt-features-logging module:
      1. use a StringReader instead of getting bytes from a String and using an InputStream (capture encoding issues at an eariler stage)
      2. add parser exception handling based on whether the payload is truncated or not; return original XML if deemed invalid
      3. do not call XMLStreamWriter.close() before getting contents for truncated or invalid XML because some writers misbehave (are extra helpful) in a way unfit for logging.
      4.construct output StringWriter with a size based on the raw XML string size
      5.additional test cases

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chris@die-schneider.net Christian Schneider
                Reporter:
                skjolber Thomas Skjølberg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: