Unable to create view using table on private schema

Bug #1401268 reported by Paul Low
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Released
High
Roberta Marton

Bug Description

db__root creates private schema with authorization to another user.
db__root creates table and has SELECT privilege.
db__root is unable to create view selecting from table.

SQL>create private schema pri_sch32 authorization USERNAME1;

--- SQL operation complete.

SQL>set schema pri_sch32;

--- SQL operation complete.

SQL>create table tab1(a int, b int);

--- SQL operation complete.

SQL>select * from tab1;

--- 0 row(s) selected.

SQL>insert into tab1 values (1,1);

--- 1 row(s) inserted.

SQL>create view view1 as select * from tab1;

*** ERROR[4481] The user does not have SELECT privilege on table or view TRAFODION.PRI_SCH32.TAB1.

SQL>

Tags: sql-security
Revision history for this message
Cliff Gray (cliff-gray) wrote :

Currently only considering explicit object-level privileges when deciding if a user has the authority to access the table(s) and view(s) referenced by the view to be created. This will be fixed soon.

Changed in trafodion:
status: New → In Progress
Paul Low (paul-low-x)
Changed in trafodion:
milestone: none → r1.1
Changed in trafodion:
assignee: Cliff Gray (cliff-gray) → Roberta Marton (roberta-marton)
Changed in trafodion:
status: In Progress → Fix Committed
Paul Low (paul-low-x)
Changed in trafodion:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.