mirror of https://github.com/apache/nifi.git
NIFI-13731 Fixed null handling for Provenance Lineage Submission (#9525)
Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
3fd3957b83
commit
a856ffc241
|
@ -758,6 +758,11 @@ public class LuceneEventIndex implements EventIndex {
|
||||||
@Override
|
@Override
|
||||||
public AsyncLineageSubmission retrieveLineageSubmission(final String lineageIdentifier, final NiFiUser user) {
|
public AsyncLineageSubmission retrieveLineageSubmission(final String lineageIdentifier, final NiFiUser user) {
|
||||||
final AsyncLineageSubmission submission = lineageSubmissionMap.get(lineageIdentifier);
|
final AsyncLineageSubmission submission = lineageSubmissionMap.get(lineageIdentifier);
|
||||||
|
|
||||||
|
if (submission == null) {
|
||||||
|
throw new AccessDeniedException("Cannot retrieve Provenance Lineage Submission. It has already been deleted or submitted to another NiFi node in the cluster.");
|
||||||
|
}
|
||||||
|
|
||||||
final String userId = submission.getSubmitterIdentity();
|
final String userId = submission.getSubmitterIdentity();
|
||||||
|
|
||||||
if (user == null && userId == null) {
|
if (user == null && userId == null) {
|
||||||
|
|
Loading…
Reference in New Issue