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

Log4j-web fails when used with anything that stores into the external context field

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.13.3
    • Fix Version/s: 2.14.0
    • Component/s: Web/Servlet
    • Labels:
      None

      Description

      Log4j-web stores a reference to the servletcontext into the external context field of the LoggerContext. If another component, such as Spring Boot, stores into that same field then the servlet context reference will be lost. Support for a map of references was added in an earlier release to support Spring Boot. The servlet context should be stored into its own entry in the map rather than the single external context field.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rgoers Ralph Goers

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment