This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new d2c6136034 [#8281]Improvement(PolicyOperation): handle policy
exception parameters (#8334)
d2c6136034 is described below
commit d2c61360347a0f7910011c5daa2a4b3f9533bf32
Author: Sambhavi Pandey <[email protected]>
AuthorDate: Mon Sep 1 08:29:11 2025 +0530
[#8281]Improvement(PolicyOperation): handle policy exception parameters
(#8334)
### What changes were proposed in this pull request?
Fixed handlePolicyException paramaters in PolicyOperations.java
### Why are the changes needed?
improvement for handlePolicyException
Fix: #8281
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Unit test
---
.../java/org/apache/gravitino/server/web/rest/PolicyOperations.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/server/src/main/java/org/apache/gravitino/server/web/rest/PolicyOperations.java
b/server/src/main/java/org/apache/gravitino/server/web/rest/PolicyOperations.java
index 2cdd5c5668..634545e349 100644
---
a/server/src/main/java/org/apache/gravitino/server/web/rest/PolicyOperations.java
+++
b/server/src/main/java/org/apache/gravitino/server/web/rest/PolicyOperations.java
@@ -287,7 +287,7 @@ public class PolicyOperations {
});
} catch (Exception e) {
- return ExceptionHandlers.handlePolicyException(OperationType.LIST, "",
policyName, e);
+ return ExceptionHandlers.handlePolicyException(OperationType.LIST, "",
metalake, e);
}
}