You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by pr...@apache.org on 2020/11/16 05:06:59 UTC
[ranger] 03/03: RANGER-3042: plugin-presto: some log mistake fix
This is an automated email from the ASF dual-hosted git repository.
pradeep pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
commit 44f633b3de5c68c60a0710327787cc806e48bc8f
Author: rujia1019 <82...@163.com>
AuthorDate: Fri Oct 16 16:12:21 2020 +0800
RANGER-3042: plugin-presto: some log mistake fix
Signed-off-by: pradeep <pr...@apache.org>
---
.../authorization/presto/authorizer/RangerSystemAccessControl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin-presto/src/main/java/org/apache/ranger/authorization/presto/authorizer/RangerSystemAccessControl.java b/plugin-presto/src/main/java/org/apache/ranger/authorization/presto/authorizer/RangerSystemAccessControl.java
index 5794a82..f9f3e4f 100644
--- a/plugin-presto/src/main/java/org/apache/ranger/authorization/presto/authorizer/RangerSystemAccessControl.java
+++ b/plugin-presto/src/main/java/org/apache/ranger/authorization/presto/authorizer/RangerSystemAccessControl.java
@@ -290,7 +290,7 @@ public class RangerSystemAccessControl
@Override
public void checkCanSetCatalogSessionProperty(SystemSecurityContext context, String catalogName, String propertyName) {
if (!hasPermission(createCatalogSessionResource(catalogName, propertyName), context, PrestoAccessType.ALTER)) {
- LOG.debug("RangerSystemAccessControl.checkCanSetSystemSessionProperty(" + catalogName + ") denied");
+ LOG.debug("RangerSystemAccessControl.checkCanSetCatalogSessionProperty(" + catalogName + ") denied");
AccessDeniedException.denySetCatalogSessionProperty(catalogName, propertyName);
}
}
@@ -485,7 +485,7 @@ public class RangerSystemAccessControl
public void checkCanDropView(SystemSecurityContext context, CatalogSchemaTableName view) {
if (!hasPermission(createResource(view), context, PrestoAccessType.DROP)) {
LOG.debug("RangerSystemAccessControl.checkCanDropView(" + view.getSchemaTableName().getTableName() + ") denied");
- AccessDeniedException.denyCreateView(view.getSchemaTableName().getTableName());
+ AccessDeniedException.denyDropView(view.getSchemaTableName().getTableName());
}
}