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

JndiManager.isJndiEnabled generates a call to NetUtils.getLocalIps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.16.0
    • None
    • Core
    • None

    Description

      While trying to upgrade from 2.15.0 to 2.16.0, we discovered some of our unit tests were failing. On further investigation, we realized that the new JndiManager.isJndiEnabled() method, on first call, causes initialization of all static members of JndiManager, including a call to NetUtils.getLocalIps. In at least one of our unit test frameworks, this generates a NullPointerException. 

      Could some of the permanentAllowed lists initialization be deferred to avoid this issue? 

      Attachments

        Activity

          People

            Unassigned Unassigned
            phongn Phong X. Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: