frankgh commented on code in PR #273:
URL: https://github.com/apache/cassandra-sidecar/pull/273#discussion_r2487959433
##########
conf/sidecar.yaml:
##########
@@ -386,8 +403,8 @@ cassandra_input_validation:
- sidecar_internal
allowed_chars_for_directory: "[a-zA-Z][a-zA-Z0-9_]{0,47}"
allowed_chars_for_quoted_name: "[a-zA-Z_0-9]{1,48}"
- allowed_chars_for_component_name:
"[a-zA-Z0-9_-]+(.db|.cql|.json|.crc32|TOC.txt)"
- allowed_chars_for_restricted_component_name: "[a-zA-Z0-9_-]+(.db|TOC.txt)"
+ allowed_chars_for_component_name:
"[a-zA-Z0-9_-]+(\\.db|\\.cql|\\.json|\\.crc32|TOC\\.txt)"
Review Comment:
the regex was incorrect in the original implementation and the error
surfaced with a unit test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]