cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Yeksigian (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-12925) AssertionError executing authz stmt on UDF without keyspace
Date Tue, 13 Dec 2016 15:39:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-12925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15745437#comment-15745437
] 

Carl Yeksigian commented on CASSANDRA-12925:
--------------------------------------------

Code looks good, and I think I understand why we can't use the {{ClientState}}, but just to
make sure: it's because of the way we share the permissions statements between resources.

That is, if we had a {{GrantFunctionPermissionsStatement}}, we could add a new interface {{KeyspacedStatement}}
(or something) which would use the {{ClientState}} as in {{CFStatement}}.

> AssertionError executing authz stmt on UDF without keyspace
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-12925
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12925
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>            Reporter: Sam Tunnicliffe
>            Assignee: Sam Tunnicliffe
>            Priority: Minor
>             Fix For: 2.2.x, 3.0.x, 3.x
>
>
> Performing a {{GRANT}} or {{REVOKE}} on a user defined function requires the function
name to be qualified by its keyspace. Unlike {{GRANT/REVOKE}} on a table, the keyspace cannot
be inferred from the {{ClientState}} as it's needed by the parser to either lookup the function
(in 2.2), or convert the function arguments from CQL types to their corresponding {{AbstractType}}
(in 3.0+).
> Currently, performing such a statement results in an unhandled assert error and a {{ServerError}}
response to the client.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message