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

Mamta A. Satoor commented on DERBY-4191:
----------------------------------------

Rick, I really appreciate you taking the time on thinking about this jira. As a 
start, I am thinking I will go ahead and work on 
getMinimalSelectPermissionsList/getRequiredPermissionsListForCountStar() 
approach. I think the actual implementation of that method will be required 
even by the alternative approach you suggested. So, for now, I will work on 
implementing the new method and have it used for count(*) case. Once I have 
that working, we can see if we should add a new internal privilege type 
MINIMAL_SELECT_PRIVILEGE and use that privilege type rather than internal 
method calls to implement the final solution. Once I have some kind of code 
ready, I will post it to this jira so we are more clear on what I am proposing 
to do. Thanks.

> 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: 10.4.2.0, 10.5.1.1
>            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.

Reply via email to