You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Roberta Marton (JIRA)" <ji...@apache.org> on 2016/01/28 01:07:39 UTC

[jira] [Closed] (TRAFODION-1773) internal error to revoke role with restrict option when there is dependent views

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

Roberta Marton closed TRAFODION-1773.
-------------------------------------
    Resolution: Fixed

fix delivered

> internal error to revoke role with restrict option when there is dependent views
> --------------------------------------------------------------------------------
>
>                 Key: TRAFODION-1773
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1773
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: sql-security
>    Affects Versions: 2.0-incubating
>            Reporter: Gao, Rui-Xian
>            Assignee: Roberta Marton
>
> When processing through the list of dependencies, the code does not assum dependent views.
> Reproduce steps --
> user dbroot--
> create role rp_a22role1;
> create role rp_a22role2;
> grant role rp_a22role1,rp_a22role2 to testuser3;
> create shared schema mysch_share;
> set schema mysch_share;
> create table a22tab1(a1 int not null primary key, b1 varchar(10));
> create table a22tab2(a2 int ,b2 varchar(10))no partition;
> create view a22v1 as select * from a22tab1;
> grant select on a22tab2 to rp_a22role1;
> grant select on a22v1 to rp_a22role2 ;
>  
> user testuser3--
>  
> set schema mysch_share;
> create view a22v3(col1,col2) as select b1,b2 from a22v1,a22tab2 where a1=a2;
>  
> user dbroot--
>  
> set schema mysch_share;
> revoke role rp_a22role1 from testuser3 ;
> *** ERROR[1364] Cannot revoke role RP_A22ROLE1. Object TRAFODION.MY_SCHEMA22.A22V3 depends on privileges on object TRAFODION.MY_SCHEMA22.A22TAB2.  [2016-01-14 06:13:11]
>  
> revoke role rp_a22role2 from testuser3 restrict; // Rachel: should get ERROR[1364] too
> *** ERROR[1001] An internal error occurred in module ../sqlcomp/PrivMgrRoles.cpp on line 421.  DETAILS(Unrecognized PrivType). [2016-01-14 06:13:11]



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