pinal-shah commented on code in PR #374:
URL: https://github.com/apache/atlas/pull/374#discussion_r2180064958


##########
authorization/src/main/java/org/apache/atlas/authorize/AtlasEntityAccessRequest.java:
##########
@@ -76,7 +79,7 @@ public AtlasEntityAccessRequest(AtlasTypeRegistry 
typeRegistry, AtlasPrivilege a
         this.businessMetadata      = businessMetadata;
         this.attributeName         = attributeName;
         this.typeRegistry          = typeRegistry;
-        this.entityClassifications = super.getClassificationNames(entity);
+        this.entityClassifications = (entity != null && 
CollectionUtils.isNotEmpty(entity.getClassificationNames())) ? new 
HashSet<>(entity.getClassificationNames()) : Collections.emptySet();

Review Comment:
   yes agreed, we can and can take up in another ticket to update the all 
possible calling methods to use without classifications.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to