This is an automated email from the ASF dual-hosted git repository. samt pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/cassandra.git
commit 82c00cc01ef4312d0d7eb7ca95c9368af75e7893 Author: Marcus Eriksson <[email protected]> AuthorDate: Tue May 28 13:14:10 2024 +0200 Disallow denylisting keys in system_cluster_metadata Patch by Marcus Eriksson; reviewed by Sam Tunnicliffe for CASSANDRA-19713 --- CHANGES.txt | 1 + src/java/org/apache/cassandra/schema/PartitionDenylist.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 515d837fec..aa37acb6ea 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 5.1 + * Disallow denylisting keys in system_cluster_metadata (CASSANDRA-19713) * Fix gossip status after replacement (CASSANDRA-19712) * Ignore repair requests for system_cluster_metadata (CASSANDRA-19711) * Avoid ClassCastException when verifying tables with reversed partitioner (CASSANDRA-19710) diff --git a/src/java/org/apache/cassandra/schema/PartitionDenylist.java b/src/java/org/apache/cassandra/schema/PartitionDenylist.java index 9c08bb1ce3..f0f7ec1d52 100644 --- a/src/java/org/apache/cassandra/schema/PartitionDenylist.java +++ b/src/java/org/apache/cassandra/schema/PartitionDenylist.java @@ -303,7 +303,8 @@ public class PartitionDenylist !SchemaConstants.TRACE_KEYSPACE_NAME.equals(keyspace) && !SchemaConstants.VIRTUAL_SCHEMA.equals(keyspace) && !SchemaConstants.VIRTUAL_VIEWS.equals(keyspace) && - !SchemaConstants.AUTH_KEYSPACE_NAME.equals(keyspace); + !SchemaConstants.AUTH_KEYSPACE_NAME.equals(keyspace) && + !SchemaConstants.METADATA_KEYSPACE_NAME.equals(keyspace); } public boolean isKeyPermitted(final String keyspace, final String table, final ByteBuffer key) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
