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

HTTP Request Log Missing Authenticated User

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0
    • Core Framework
    • None

    Description

      The framework HTTP nifi-request.log records the authenticated username, when available, for HTTP request that the Jetty server handles. The RequestAuthenticationFilter in the nifi-jetty module provides authenticated user integration for Jetty Requests based on a request attribute that a separate Spring Security filter provides.

      Changes to the Jetty Server filter configuration introduced a different Headers Writer filter, which wraps the HttpServletRequest. As a result of request wrapping, the RequestAuthenticationFilter is unable to set the authenticated user on the Jetty Request, which results in a null value being logged for all HTTP requests in nifi-request.log.

      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 - 20m
                  20m