Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2002

DefaultConfigurationBuilder.writeXmlAttributes does not handle null attribute values

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.2
    • Fix Version/s: 2.11.0
    • Component/s: Configurators
    • Labels:
      None

      Description

      The default java XMLStreamWriterImpl writeXMLContent() requires that the content argument be non-null. Attributes in a Log4J component configuration may be null which breaks export.

      DefaultConfigurationBuilder.writeXmlAttributes() needs to perform a null check for every attribute before passing it to XMLStreamWriterImpl.writeAttribute().

        Attachments

          Activity

            People

            • Assignee:
              mikaelstaldal Mikael Ståldal
              Reporter:
              pburrowesOC Paul Burrowes
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: