You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Chunling Wang (JIRA)" <ji...@apache.org> on 2017/01/03 03:57:58 UTC

[jira] [Resolved] (HAWQ-1237) Insert statement need "select" privilege in ranger check

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

Chunling Wang resolved HAWQ-1237.
---------------------------------
    Resolution: Fixed

> Insert statement need "select" privilege in ranger check 
> ---------------------------------------------------------
>
>                 Key: HAWQ-1237
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1237
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: Security
>            Reporter: Chunling Wang
>            Assignee: Chunling Wang
>             Fix For: 2.2.0.0-incubating
>
>
> The code in create_ranger_request_json_batch() in rangerrest.c is hard code and make all statements need "select" privilege in ranger check.
> {code}
> 		//ListCell *cell;
> 		//foreach(cell, arg_ptr->actions)
> 		//{
> 		char tmp[7] = "select";
> 		json_object* jaction = json_object_new_string((char *)tmp);
> 		//json_object* jaction = json_object_new_string((char *)cell->data.ptr_value);
> 		json_object_array_add(jactions, jaction);
> 		//}
> 		json_object_object_add(jelement, "privileges", jactions);
> 		json_object_array_add(jaccess, jelement);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)