Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30838

Log4j2 sensitive data filter prevents auto reload of log4j configuration

    Details

    • Release Notes Summary:
      Log4j2 automatic configuration reload works correctly
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #55
    • Story Points:
      3

      Description

      Changes made to the log4j configuration by editing the $NUXEO_HOME/lib/log4j2.xml is taken into account at runtime, but this seems broken since NXP-30079.

      A change in log4j conf file results in:

      2022-01-21 10:52:38,132 Log4j2-TF-1-ConfiguratonFileWatcher-6 ERROR Rewrite contains an invalid element or attribute "MaskSensitiveData"
      2022-01-21 10:52:38,143 Log4j2-TF-1-ConfiguratonFileWatcher-6 ERROR Rewrite contains an invalid element or attribute "MaskSensitiveData"
      

      Removing this MaskSensitiveData filer in log4j is not working either.

      Probably related to a classpath problem, such error is also seen on first start:

      Listening for transport dt_socket at address: 8787
      2022-01-21 10:51:07 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [474] milliseconds
      2022-01-21 10:51:08,034 main ERROR Rewrite contains an invalid element or attribute "MaskSensitiveData"
      2022-01-21 10:51:08,051 main ERROR Rewrite contains an invalid element or attribute "MaskSensitiveData"
      # Running Nuxeo Preprocessor ...
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.