Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.6
    • Fix Version/s: None
    • Labels:
      None

      Description

      XMLLayout does not seem to encode '&' characters
      (it uses Transform.escapeTags which only escapes '<' and '>').
      As a result, it produces broken XML especially when properties
      are enabled and MDCInsertingServletFilter is used :

      <log4j:data name='req.queryString' value='foo=42&bar=42' />

        Attachments

        1. 0001-Escape-XML-and.patch
          2 kB
        2. 0002-Escape-more-things-in-XMLLayout.patch
          2 kB
        3. logback.xml
          0.5 kB
        4. test.xml
          3 kB
        5. TestLogback.java
          0.8 kB

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              corona Gabriel Corona
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: