Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Not A Problem
-
None
-
Normal
Description
The AlterViewStatement.checkAccess method has code lines as follow:
AlterViewStatement.java
if (baseTable != null) state.hasColumnFamilyAccess(keyspace(), baseTable.name, Permission.ALTER);
These lines can throw InvalidRequestException. Indeed, DropTableStatement.checkAccess has a similar problem, and was fixed in CASSANDRA-6687. The fixed code is as follow:
DropTableStatement.java
try { state.hasColumnFamilyAccess(keyspace(), columnFamily(), Permission.DROP); } catch (InvalidRequestException e) { if (!ifExists) throw e; }
Please fix the problem as CASSANDRA-6687 did.