You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Berenguer Blasi (Jira)" <ji...@apache.org> on 2022/12/02 10:44:00 UTC

[jira] [Commented] (CASSANDRA-17848) Fix incorrect resource name in LIST PERMISSION output

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

Berenguer Blasi commented on CASSANDRA-17848:
---------------------------------------------

Hi [~yifanc] The 4.0 CI run looks much better now. The compact storage failure is a known one. Also the PRs look ok.

But checking your CI runs I see they are not equivalent to the 'pre-commit' present in our circle files. You are missing all the j11 tests under the j8 section i.e. Could we stick to the provided circle file or are there any special needs you need to modify the file for? I am asking bc having to check the list of jobs matching the 'official' circle file is an eye watering exercise.

> Fix incorrect resource name in LIST PERMISSION output
> -----------------------------------------------------
>
>                 Key: CASSANDRA-17848
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17848
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Interpreter
>            Reporter: Yifan Cai
>            Assignee: Yifan Cai
>            Priority: Normal
>             Fix For: 3.0.29, 3.11.15, 4.0.8, 4.1.1, 4.2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When producing the resource name, it seems to assume that the content in the `[]` is the function's input type, where it could also be part of the function name, as long as it is quoted. Here is an example to reproduce. In cqlsh,
> {code:java}
> > CREATE FUNCTION test."admin_created_udf[org.apache.cassandra.db.marshal.LongType]"(input int) RETURNS NULL ON NULL INPUT RETURNS int LANGUAGE java AS 'return 42;';
> > LIST EXECUTE OF user;
>  role  | username | resource                                | permission
> -------+----------+-----------------------------------------+------------
>  user  |    user  | <function test.admin_created_udf(long)> |    EXECUTE
> (1 rows)
> {code}
> The input should be "int", but in the output, it says "long". 
> If the content enclosed by "[]" is not a valid class, the LIST PERMISSION request always fails for the user with "ConfigurationException: Unable to find abstract-type class".
> The bug is discovered by Piotr Sarna.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org