lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (Jira) <>
Subject [jira] [Commented] (SOLR-13905) Nullpointer exception in AuditEvent
Date Fri, 15 Nov 2019 15:05:00 GMT


Jan Høydahl commented on SOLR-13905:

[~uschindler] Do you have any idea why httpRequest.getPathInfo() behaves differently in tests
and real life?

> Nullpointer exception in AuditEvent
> -----------------------------------
>                 Key: SOLR-13905
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Auditlogging
>    Affects Versions: 8.3
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>            Priority: Major
>             Fix For: 8.4, 8.3.1
>          Time Spent: 10m
>  Remaining Estimate: 0h
> Nullpointer exception in AuditEvent for events with HttpServletRequest as input. Happens
when {{getPathInfo()}} returns null, which was not caught by current tests. This causes
the whole request to fail, rendering the audit service unusable.
> The nullpointer is experienced in the {{findRequestType()}} method when performing pattern
match on the resource (path).
> This is a regression from 8.3, caused by SOLR-13835 where we switched from fetching
the URL path from {{httpRequest.getContextPath()}} to {{httpRequest.getPathInfo()}}. However
while this method behaves well in tests (JettyTestRunner) it returns {{null}} in production.

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message