hdygxsj commented on code in PR #7536:
URL: https://github.com/apache/gravitino/pull/7536#discussion_r2184687345
##########
server/src/main/java/org/apache/gravitino/server/web/rest/SchemaOperations.java:
##########
@@ -184,10 +217,15 @@ public Response alterSchema(
@Produces("application/vnd.gravitino.v1+json")
@Timed(name = "drop-schema." + MetricNames.HTTP_PROCESS_DURATION, absolute =
true)
@ResponseMetered(name = "drop-schema", absolute = true)
+ @AuthorizationExpression(
+ expression = "METALAKE::OWNER || CATALOG::OWNER || SCHEMA::OWNER",
Review Comment:
fixed
##########
server/src/main/java/org/apache/gravitino/server/web/rest/SchemaOperations.java:
##########
@@ -83,6 +88,14 @@ public Response listSchemas(
() -> {
Namespace schemaNS = NamespaceUtil.ofSchema(metalake, catalog);
NameIdentifier[] idents = dispatcher.listSchemas(schemaNS);
+ idents =
Review Comment:
fixed
##########
server/src/main/java/org/apache/gravitino/server/web/rest/SchemaOperations.java:
##########
@@ -126,10 +146,18 @@ public Response createSchema(
@Produces("application/vnd.gravitino.v1+json")
@Timed(name = "load-schema." + MetricNames.HTTP_PROCESS_DURATION, absolute =
true)
@ResponseMetered(name = "load-schema", absolute = true)
+ @AuthorizationExpression(
Review Comment:
fixed
##########
core/src/main/java/org/apache/gravitino/authorization/OwnerManager.java:
##########
@@ -60,7 +62,7 @@ public OwnerManager(EntityStore store) {
public void setOwner(
String metalake, MetadataObject metadataObject, String ownerName,
Owner.Type ownerType) {
-
+ notifyOwnerChange(metalake, metadataObject);
Review Comment:
fixed
--
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]