You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksei Zotov (Jira)" <ji...@apache.org> on 2021/09/20 18:32:00 UTC

[jira] [Commented] (CASSANDRA-16977) ArrayIndexOutOfBoundsException in FunctionResource#fromName

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

Aleksei Zotov commented on CASSANDRA-16977:
-------------------------------------------

I checked 3.11 PR and posted a question on the function format without square brackets:
{code:java}
functions/ks1/foo
{code}
I'm not sure whether it needs to be supported. In either case, a corresponding test needs to be added.

 

> ArrayIndexOutOfBoundsException in FunctionResource#fromName
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-16977
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16977
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Feature/Authorization
>            Reporter: Berenguer Blasi
>            Assignee: Berenguer Blasi
>            Priority: Normal
>             Fix For: 3.11.x, 4.0.x, 4.x
>
>
> {{FunctionResource}} can't handle functions with 0 args where it throws:
> {noformat}
> 2021-04-08 10:45:40,984 ErrorMessage.java:387 - Unexpected exception during request
> java.lang.ArrayIndexOutOfBoundsException: 1
> at org.apache.cassandra.auth.FunctionResource.fromName(FunctionResource.java:178)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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