mirror of https://github.com/apache/lucene.git
SOLR-14198: Nullpointer exception in AuditEvent with AuthorizationContext (#1192)
This commit is contained in:
parent
f1db918e20
commit
75c64089a1
|
@ -221,6 +221,8 @@ Bug Fixes
|
|||
|
||||
* SOLR-13089: Fix lsof edge cases in the solr CLI script (Martijn Koster via janhoy)
|
||||
|
||||
* SOLR-14198: Nullpointer exception in AuditEvent when initialized from AuthorizationContext (janhoy)
|
||||
|
||||
* SOLR-6613: TextField.analyzeMultiTerm does not throw an exception when Analyzer returns no terms. (Bruno Roustant)
|
||||
|
||||
* SOLR-14192: Race condition between SchemaManager and ZkIndexSchemaReader. (ab)
|
||||
|
|
|
@ -170,10 +170,12 @@ public class AuditEvent {
|
|||
.stream().map(r -> r.collectionName).collect(Collectors.toList());
|
||||
setResource(authorizationContext.getResource());
|
||||
this.requestType = RequestType.convertType(authorizationContext.getRequestType());
|
||||
if (authorizationContext.getParams() != null) {
|
||||
authorizationContext.getParams().forEach(p -> {
|
||||
this.solrParams.put(p.getKey(), Arrays.asList(p.getValue()));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Event to log completed requests. Takes time and status. Solr will fill in details
|
||||
|
|
Loading…
Reference in New Issue