You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "roryqi (via GitHub)" <gi...@apache.org> on 2026/08/20 08:26:31 UTC

Re: [PR] [#12480] improvement(server): Add table-like existence probe privilege [gravitino]

roryqi commented on code in PR #12482:
URL: https://github.com/apache/gravitino/pull/12482#discussion_r3819849686


##########
server/src/main/java/org/apache/gravitino/server/web/rest/TableOperations.java:
##########
@@ -82,7 +82,7 @@ public TableOperations(TableDispatcher dispatcher) {
   @Timed(name = "list-table." + MetricNames.HTTP_PROCESS_DURATION, absolute = true)
   @ResponseMetered(name = "list-table", absolute = true)
   @AuthorizationExpression(
-      expression = AuthorizationExpressionConstants.LOAD_SCHEMA_AUTHORIZATION_EXPRESSION,
+      expression = AuthorizationExpressionConstants.PROBE_TABLE_LIKE_AUTHORIZATION_EXPRESSION,

Review Comment:
   You don't modify here. You should change 100 line expression.                 
   ```
   MetadataAuthzHelper.filterByExpression(
                       metalake,
                       AuthorizationExpressionConstants.FILTER_TABLE_AUTHORIZATION_EXPRESSION,
                       Entity.EntityType.TABLE,
                       idents);
   ```



##########
server/src/main/java/org/apache/gravitino/server/web/rest/TableOperations.java:
##########
@@ -82,7 +82,7 @@ public TableOperations(TableDispatcher dispatcher) {
   @Timed(name = "list-table." + MetricNames.HTTP_PROCESS_DURATION, absolute = true)
   @ResponseMetered(name = "list-table", absolute = true)
   @AuthorizationExpression(
-      expression = AuthorizationExpressionConstants.LOAD_SCHEMA_AUTHORIZATION_EXPRESSION,
+      expression = AuthorizationExpressionConstants.PROBE_TABLE_LIKE_AUTHORIZATION_EXPRESSION,

Review Comment:
   You shouldn't modify here. You should change 100 line expression.                 
   ```
   MetadataAuthzHelper.filterByExpression(
                       metalake,
                       AuthorizationExpressionConstants.FILTER_TABLE_AUTHORIZATION_EXPRESSION,
                       Entity.EntityType.TABLE,
                       idents);
   ```



-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org