Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2594

Revoking a privilege from an SQL Object should invalidate statements dependent on that object

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6
    • 10.3.1.4
    • SQL
    • None
    • Normal

    Description

      Revoking a privilege on a table will currently cause the DependencyManager.invalidateFor() to be called on the table's TablePermsDescriptor with the action=REVOKE_PRIVILEGE. However, the prepared statements that refer to that table are dependents of the table's TableDescriptor, but NOT its TablePermsDescriptor, so the statements are not invalidated after revoke.

      This problem is currently hidden by the fact that authorization is checked on every execution, but this will change when language result sets are no longer reused (see DERBY-827).

      Attachments

        1. revoke_prelim.diff
          3 kB
          Dyre Tjeldvoll
        2. derby-2594.v1.diff
          4 kB
          Dyre Tjeldvoll
        3. derby-2594.v1.stat
          0.4 kB
          Dyre Tjeldvoll
        4. DependencyTraceUntested.diff
          1 kB
          Dyre Tjeldvoll
        5. out.txt
          101 kB
          Dyre Tjeldvoll

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dyret Dyre Tjeldvoll
            dyret Dyre Tjeldvoll
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment