bbende commented on a change in pull request #197: NIFIREG-206 Support
anonymous access to public resources
URL: https://github.com/apache/nifi-registry/pull/197#discussion_r293052742
##########
File path:
nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/AuthorizableApplicationResource.java
##########
@@ -56,13 +56,17 @@ protected void authorizeBucketItemAccess(RequestAction
actionType, BucketItem bu
}
protected Set<String> getAuthorizedBucketIds(RequestAction actionType) {
- return authorizationService
+ final Set<String> authorizedBucketIds = authorizationService
.getAuthorizedResources(actionType, ResourceType.Bucket)
.stream()
.map(AuthorizableApplicationResource::extractBucketIdFromResource)
.filter(Objects::nonNull)
.distinct()
.collect(Collectors.toSet());
+
Review comment:
Will remove
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services