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

Grant and Revoke on table columns with referencing views does not work

    XMLWordPrintableJSON

Details

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

    Description

      This is a similar problem to TRAFODION-1761 but has to do with column privileges. TRAFODION-1761 fixes issues with object privileges.

      Granting or revoking column privilege on a table/view that has referencing views requires the grant or revoke be propagated to said views. (Ansi standard <grant statement> and <revoke statement> general rules section). Take grant, for example. If granting column privileges to a table, the column privileges should be propagated to all referencing views where the grantor is the system user, the grantee is the view owner, and the view contains columns defined in the grant statement.

      • If the privilege is update, or delete and the referencing view is updatable (you can't grant insert privilege to column).
      • If the privilege is select and the WGO is being added (the select privilege is required to create the referencing view in the first place).

      There are a few issues with grant and revoke that need to be fixed:

      Attachments

        Activity

          People

            rmarton Roberta Marton
            rmarton Roberta Marton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: