db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4191) Lack of SELECT privilege does not prevent SELECT COUNT(*)
Date Thu, 19 Nov 2009 22:33:39 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780309#action_12780309

Knut Anders Hatlen commented on DERBY-4191:

Just to add to Rick's point, this problem is not limited to COUNT, or to aggregate functions.
Same problem can be seen with for instance this statement that just selects a constant expression
from table ROOT.T (executed as user KAH in the original repro):

ij(CONNECTION1)> select x from root.t;
ERROR 42502: User 'KAH' does not have SELECT permission on column 'X' of table 'ROOT'.'T'.
ij(CONNECTION1)> select 1 from root.t;

3 rows selected

> Lack of SELECT privilege does not prevent SELECT COUNT(*)
> ---------------------------------------------------------
>                 Key: DERBY-4191
>                 URL: https://issues.apache.org/jira/browse/DERBY-4191
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions:,
>            Reporter: Knut Anders Hatlen
>         Attachments: repro.sql
> A user that does not have SELECT privilege on a table can still perform a SELECT COUNT(*)
on that table. Counting a specific column (e.g., SELECT COUNT(X)) is prevented.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message