Showddl after granting privs on metadata tables fails

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

Bug Description

The showddl statement for tables should show all the granted privileges.
After the select priv is granted on a system metadata table followed by a showddl, the showddl does not show any privileges.

sqlci
Trafodion Conversational Interface 1.0.0
(c) Copyright 2014 Hewlett-Packard Development Company, LP.
>>grant select on "_MD_".keys to sql_user2;

--- SQL operation complete.
>>showddl "_MD_".keys;

CREATE TABLE TRAFODION."_MD_".KEYS
  (
    OBJECT_UID LARGEINT NO DEFAULT NOT NULL NOT DROPPABLE
  , COLUMN_NAME VARCHAR(256 BYTES) CHARACTER SET UTF8
      COLLATE DEFAULT NO DEFAULT NOT NULL NOT DROPPABLE
  , KEYSEQ_NUMBER INT NO DEFAULT NOT NULL NOT DROPPABLE
  , COLUMN_NUMBER INT NO DEFAULT NOT NULL NOT DROPPABLE
  , ORDERING INT NO DEFAULT NOT NULL NOT DROPPABLE
  , NONKEYCOL INT NO DEFAULT NOT NULL NOT DROPPABLE
  , FLAGS LARGEINT NO DEFAULT NOT NULL NOT DROPPABLE
  , PRIMARY KEY (OBJECT_UID ASC, KEYSEQ_NUMBER ASC)
  )
;

--- SQL operation complete.
>>

If you exit out of sqlci and rerun the showddl command, it now shows all the privileges.
>exit

sqlci

>>showddl "_MD_".keys;

CREATE TABLE TRAFODION."_MD_".KEYS
  (
    OBJECT_UID LARGEINT NO DEFAULT NOT NULL NOT DROPPABLE
  , COLUMN_NAME VARCHAR(256 BYTES) CHARACTER SET UTF8
      COLLATE DEFAULT NO DEFAULT NOT NULL NOT DROPPABLE
  , KEYSEQ_NUMBER INT NO DEFAULT NOT NULL NOT DROPPABLE
  , COLUMN_NUMBER INT NO DEFAULT NOT NULL NOT DROPPABLE
  , ORDERING INT NO DEFAULT NOT NULL NOT DROPPABLE
  , NONKEYCOL INT NO DEFAULT NOT NULL NOT DROPPABLE
  , FLAGS LARGEINT NO DEFAULT NOT NULL NOT DROPPABLE
  , PRIMARY KEY (OBJECT_UID ASC, KEYSEQ_NUMBER ASC)
  )
;

-- GRANT DELETE, INSERT, SELECT, UPDATE, REFERENCES ON TRAFODION."_MD_"."KEYS" TO DB__ROOT WITH GRANT OPTION;
  GRANT SELECT ON TRAFODION."_MD_".KEYS TO SQL_USER1;
GRANT SELECT ON
  TRAFODION."_MD_".KEYS TO SQL_USER2;

--- SQL operation complete.

Tags: sql-security
Changed in trafodion:
assignee: nobody → Roberta Marton (roberta-marton)
importance: Undecided → High
milestone: none → r1.1
tags: added: sql-cmu
Changed in trafodion:
status: New → In Progress
tags: added: sql-security
removed: sql-cmu
Revision history for this message
Roberta Marton (roberta-marton) wrote :

fixed

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

verified in 0327 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.