Privilege lost in replacement view after create or replace view command

Bug #1392107 reported by Paul Low
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Released
Medium
Cliff Gray

Bug Description

If a user had privileges on an old view before the 'create or replace view' command, the privilege is not carried over to the newly created view. See log below.

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

--- SQL operation complete.

SQL>create table tab002 (x int, y int, z int);

--- SQL operation complete.

SQL>insert into tab001 values (1,2);

--- 1 row(s) inserted.

SQL>create view v001 as select * from tab001;

--- SQL operation complete.

SQL>grant select, insert on v001 to username1;

--- SQL operation complete.

SQL>connect username1/password1
Connected to Trafodion

SQL>select * from v001;

A B
----------- -----------
          1 2

--- 1 row(s) selected.

SQL>connect dbrootuser/dbrootpassword
Connected to Trafodion

SQL>create or replace view v001 as select * from tab002;

--- SQL operation complete.

SQL>connect username1/password1
Connected to Trafodion

SQL>select * from v001;

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

SQL>

Tags: sql-security
Paul Low (paul-low-x)
Changed in trafodion:
milestone: none → r1.1
Changed in trafodion:
importance: Low → Medium
assignee: Anoop Sharma (anoop-sharma) → Roberta Marton (roberta-marton)
Changed in trafodion:
assignee: Roberta Marton (roberta-marton) → Cliff Gray (cliff-gray)
Cliff Gray (cliff-gray)
Changed in trafodion:
status: New → In Progress
Revision history for this message
Cliff Gray (cliff-gray) wrote :

Fix delivered in 1082/

Changed in trafodion:
status: In Progress → Fix Committed
Revision history for this message
Paul Low (paul-low-x) wrote :

verified on 20150219 build

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.