Logging thread-local diagnostic context not cleared on Quartz threads

XMLWordPrintable

      Logging that comes from job threads includes the NDC information from the setup wizard, or whatever other action was the first one executed in Confluence:

      2010-09-03 10:38:02,888 ERROR [pool-9-thread-2] [directory.ldap.mapper.GroupContextMapper] mapFromContext Failed to map attribute <memberDNs> from context with DN <cn=o-group-6643,ou=kid-5,ou=child-0,ou=Bulk,ou=Test,dc=dc-one,dc=crowd,dc=sydney,dc=atlassian,dc=com>
       -- referer: http://localhost:8080/setup/setupstandarddb-start.action?database=postgresql | url: /setup/setupstandarddb.action | userName: anonymous | action: setupstandarddb
      

      In this case, the referer and url information are incorrect. The NDC information should not be set on the Quartz worker threads. This seems to be a bug where it is being transferred from the thread which starts Quartz.

      First spotted on the Embedded Crowd branch, but will most probably apply to all versions of Confluence since the NDC was introduced.

            Assignee:
            Matt Ryall
            Reporter:
            Matt Ryall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: