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

DefaultConfigurationBuilder.writeXmlAttributes does not handle null attribute values

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.2
    • 2.11.0
    • Configurators
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment