Privilege fixes for TRAFODION-12, TRAFODION-1761, and TRAFODION-1773TRAFODION-12 Grant Revoke Enhancements-- Revoke: added code to verify that when column privileges are revoked then the remaining grants are is still intact. It does this by starting at the beginning of the privilege tree and rebuilding it from top to bottom with the requested privilege changes. If the revoke causes part of the tree to be unaccessible (a broken branch), the revoke operation fails.TRAFODION-1761 Grant and Revoke on table with referencing views does not work-- When granting INSERT, UPDATE, or DELETE object privilege(s) on a table that is referenced by one or more views, then the privilege should be granted on any updatable views that reference the table. The grant request to the these views should be executed as though the current user is _SYSTEM. Similarily for revokes.-- If the grant is performed that adds the WITH GRANT OPTION, then the WITH GRANT OPTION is to be added to the referencing views. The grant request should be executed as though the current user is _SYSTEM. Similarily for revokes.-- The problem was caused by the incorrect grantor being processed. So, added a new field to the ObjectUsage structure that tells grant/revoke that the grantor should be the system user. Also added change to not propagate update privileges on non updatable views.-- The checkin fixes object privileges; however, work is still needed to support column level privileges and a mix between column and object level.TRAFODION-1773 Internal error to revoke role with restrict option when there isdependent view-- There code (PrivMgrRoles) that determines if a specific user that owns objects whose existence depend upon a privilege granted to the specified role can be revoked. This code did not consider views as a referenced object typeCleaned up PrivMgrDesc.h & PrivMgrDesc.cpp:-- remove unused grantee field-- added columnOrdinal which will be used to fix column privs for TRAFODION 1761-- replaced std::bitset<NBR_OF_PRIVS> with the define PrivMgrBitmap
Part 1 of updates to licensing info in Trafodion sourceAdded NOTICE.txt file in root directory per ASF guidelines.Updated copyright text in one directory (core/sql/sqlcomp)as a test of a tool to update such text. One or more latercheck-ins will take care of the remaining directories.