Maxim Muzafarov created CASSANDRA-21510:
-------------------------------------------

             Summary: DROP USER statement reject unreserved keywords as names, 
breaking existing users after any new CQL keyword is added
                 Key: CASSANDRA-21510
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21510
             Project: Apache Cassandra
          Issue Type: Bug
            Reporter: Maxim Muzafarov
            Assignee: Maxim Muzafarov


The username and identity grammar rules in Parser.g accept only IDENT | 
STRING_LITERAL:

{code}
  username
      : IDENT
      | STRING_LITERAL
      | QUOTED_NAME { addRecognitionError(...) }
      ;
{code}
  
By contrast, the roleName rule additionally accepts unreserved_keyword. 
Consequently, whenever a word is promoted to an unreserved keyword in the 
lexer, tokenisation as IDENT stops. Any existing user or identity with that 
name silently loses access to the USER/IDENTITY statement forms after an 
upgrade.




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to