Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2189

user has incorrect privilege on columns if multiple roles with different column privileges are granted to the user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • sql-security
    • None

    Description

      create role role1;
      create role role2;
      create schema mysch;
      set schema mysch;
      create table tab1(col1 int not null primary key,col2 int ,col3 varchar(10));

      grant insert(col1,col2), select(col1,col2) on tab1 to role1 with grant option;
      grant update(col2) on tab1 to role1 with grant option;
      grant update(col2) on tab1 to role2 with grant option;

      grant role role1, role2 to qauser2;

      connect as qauser2:

      set schema mysch;
      insert into tab1(col1,col2) values(2,2); // insert should succeed because role1 has select privilege on col2.

          • ERROR[4481] The user does not have SELECT privilege on table or view TRAFODION.MYSCH.TAB1(columns: COL2). [2016-08-24 10:04:08]
          • ERROR[4481] The user does not have INSERT privilege on table or view TRAFODION.MYSCH.TAB1(columns: COL2). [2016-08-24 10:04:08]

      Attachments

        Activity

          People

            rmarton Roberta Marton
            rachelgao Gao, Rui-Xian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: