This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-metadata-authz
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-metadata-authz by this
push:
new f05cf2aa7d [#7549] improvement(authz): Improve the process logic of
authorization is disabled (#7566)
f05cf2aa7d is described below
commit f05cf2aa7dcd35695642753291f20d61530cdf5a
Author: yangyang zhong <[email protected]>
AuthorDate: Fri Jul 4 11:50:01 2025 +0800
[#7549] improvement(authz): Improve the process logic of authorization is
disabled (#7566)
### What changes were proposed in this pull request?
improve the process logic of authorization is disabled
### Why are the changes needed?
close: #7549
### Does this PR introduce _any_ user-facing change?
None
### How was this patch tested?
Using the existing test cases is sufficient.
---
.../main/java/org/apache/gravitino/server/GravitinoServer.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/server/src/main/java/org/apache/gravitino/server/GravitinoServer.java
b/server/src/main/java/org/apache/gravitino/server/GravitinoServer.java
index c9a45a8124..67ee16c9d0 100644
--- a/server/src/main/java/org/apache/gravitino/server/GravitinoServer.java
+++ b/server/src/main/java/org/apache/gravitino/server/GravitinoServer.java
@@ -128,9 +128,11 @@ public class GravitinoServer extends ResourceConfig {
new AbstractBinder() {
@Override
protected void configure() {
- bind(GravitinoInterceptionService.class)
- .to(InterceptionService.class)
- .in(Singleton.class);
+ if (serverConfig.get(Configs.ENABLE_AUTHORIZATION)) {
+ bind(GravitinoInterceptionService.class)
+ .to(InterceptionService.class)
+ .in(Singleton.class);
+ }
bind(gravitinoEnv.metalakeDispatcher()).to(MetalakeDispatcher.class).ranked(1);
bind(gravitinoEnv.catalogDispatcher()).to(CatalogDispatcher.class).ranked(1);
bind(gravitinoEnv.schemaDispatcher()).to(SchemaDispatcher.class).ranked(1);