Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-12813

Username Missing from HTTP Request Log

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-M2
    • 2.0.0-M3
    • Core Framework
    • None

    Description

      Following the upgrade to Jetty 12 and related libraries, the username field is never populated in the HTTP Request Log sent to nifi-request.log.

      The problem is due to an attribute name mismatch between two different packages containing the same Jetty AuthenticationState interface. This interface provides the request attribute name that the Jetty CustomRequestLog uses to determine the authenticated user. Without setting the correct attribute name, the Jetty RequestLog cannot determine the authenticated user, resulting in an empty value regardless of user authentication status.

      This lack of logging does not impact authentication and authorization processing, and additional logging can be configured for Spring Security loggers to track user authentication in the impacted version.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m