You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Pradeep Agrawal (Jira)" <ji...@apache.org> on 2020/11/16 05:42:00 UTC

[jira] [Resolved] (RANGER-3042) plugin-presto: some log issues should be fixed

     [ https://issues.apache.org/jira/browse/RANGER-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pradeep Agrawal resolved RANGER-3042.
-------------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

https://github.com/apache/ranger/commit/44f633b3de5c68c60a0710327787cc806e48bc8f

> plugin-presto: some log issues should be fixed
> ----------------------------------------------
>
>                 Key: RANGER-3042
>                 URL: https://issues.apache.org/jira/browse/RANGER-3042
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: rujia
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: 0001-plugin-presto-some-log-mistake-fix.patch
>
>
> some log issues should be fixed about log or exception about presto plugin
>  
> {code:java}
>   @Override
>   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());
>     }
>   }
>   [~Override]
>   public void checkCanSetCatalogSessionProperty(SystemSecurityContext context, String catalogName, String propertyName) {
>     if (!hasPermission(createCatalogSessionResource(catalogName, propertyName), context, PrestoAccessType.ALTER)) {
>       LOG.debug("RangerSystemAccessControl.checkCanSetSystemSessionProperty{color}(" + catalogName + ") denied");
>       AccessDeniedException.denySetCatalogSessionProperty(catalogName, propertyName);
>     }
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)