Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14198

Nullpointer in AuditEvent when initialized from AuthorizationContext

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.2, 8.3, 8.4
    • 8.5
    • Auditlogging
    • None

    Description

      If you enable Authentication with blockUnknown=false together with an AuditLoggerPlugin, and then invoke a request without any credentials (results in 401), then an AuditEvent constructor taking AuthorizationContext as argument is invoked, resulting in NPE when attempting to copy SolrParams from AuthContext over to AuditEvent.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            janhoy Jan Høydahl
            janhoy Jan Høydahl
            Votes:
            0 Vote for this issue
            Watchers:
            3 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

                Slack

                  Issue deployment