jerryshao commented on code in PR #9384:
URL: https://github.com/apache/gravitino/pull/9384#discussion_r2602226405


##########
server-common/src/main/java/org/apache/gravitino/server/authorization/jcasbin/JcasbinAuthorizer.java:
##########
@@ -529,14 +530,14 @@ private void loadPolicyByRoleEntity(RoleEntity 
roleEntity) {
               String.valueOf(roleEntity.id()),
               securableObject.type().name(),
               String.valueOf(MetadataIdConverter.getID(securableObject, 
metalake)),
-              privilege.name().name().toUpperCase(),
+              
AuthorizationUtils.replaceLegacyPrivilegeName(privilege.name()).name().toUpperCase(),

Review Comment:
   `toUpperCase` should specify the `Locale`.



-- 
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]

Reply via email to