Issue Details (XML | Word | Printable)

Key: DERBY-2594
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dyre Tjeldvoll
Reporter: Dyre Tjeldvoll
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

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

Created: 26/Apr/07 11:35 AM   Updated: 08/Jul/08 01:23 PM
Return to search
Component/s: SQL
Affects Version/s: 10.2.1.6
Fix Version/s: 10.3.1.4

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works DependencyTraceUntested.diff 2007-05-02 04:02 PM Dyre Tjeldvoll 1 kB
File Licensed for inclusion in ASF works derby-2594.v1.diff 2007-05-02 07:27 AM Dyre Tjeldvoll 4 kB
File Licensed for inclusion in ASF works derby-2594.v1.stat 2007-05-02 07:27 AM Dyre Tjeldvoll 0.4 kB
Text File Licensed for inclusion in ASF works out.txt 2007-05-02 04:02 PM Dyre Tjeldvoll 101 kB
File Licensed for inclusion in ASF works revoke_prelim.diff 2007-04-27 12:53 PM Dyre Tjeldvoll 3 kB
Issue Links:
Reference

Urgency: Normal
Resolution Date: 21/May/07 10:42 AM


 Description  « Hide
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).

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #536767 Thu May 10 07:49:08 UTC 2007 kahatlen DERBY-2594: Revoking a privilege from an SQL Object should invalidate
statements dependent on that object

Patch contributed by Dyre Tjeldvoll.
Files Changed
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/RoutinePrivilegeInfo.java
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/ViewDescriptor.java
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/TablePrivilegeInfo.java