This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 494fc2e44 RANGER-4477: RangerOzoneAuthorizer doesn't set the resource
owner
494fc2e44 is described below
commit 494fc2e44dc0395b7801697b11bde57e9c39f556
Author: Christos Bisias <[email protected]>
AuthorDate: Mon Oct 16 20:42:30 2023 +0300
RANGER-4477: RangerOzoneAuthorizer doesn't set the resource owner
Signed-off-by: Madhan Neethiraj <[email protected]>
---
.../ranger/authorization/ozone/authorizer/RangerOzoneAuthorizer.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/plugin-ozone/src/main/java/org/apache/ranger/authorization/ozone/authorizer/RangerOzoneAuthorizer.java
b/plugin-ozone/src/main/java/org/apache/ranger/authorization/ozone/authorizer/RangerOzoneAuthorizer.java
index 12e647ca3..53cc0201e 100644
---
a/plugin-ozone/src/main/java/org/apache/ranger/authorization/ozone/authorizer/RangerOzoneAuthorizer.java
+++
b/plugin-ozone/src/main/java/org/apache/ranger/authorization/ozone/authorizer/RangerOzoneAuthorizer.java
@@ -125,6 +125,8 @@ public class RangerOzoneAuthorizer implements
IAccessAuthorizer {
rangerRequest.setAccessTime(eventTime);
RangerAccessResourceImpl rangerResource = new
RangerAccessResourceImpl();
+ rangerResource.setOwnerUser(context.getOwnerName());
+
rangerRequest.setResource(rangerResource);
rangerRequest.setAccessType(accessType);
rangerRequest.setAction(action);