We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cassandra allows non-ASCII characters in datacenter names, for example DåtåCenter1.
DåtåCenter1
However, the cassandra-rackdc.properties file is decoded using ISO-8859-1, so it needs to use Unicode escapes:
cassandra-rackdc.properties
dc=D\u00e5t\u00e5Center1
Currently this is not the case, cass-config-builder writes the unescaped Unicode string:
# Wrong, Cassandra won't decode this properly dc=DåtåCenter1
Minimal test to reproduce this in build_config_test.clj:
build_config_test.clj
(deftest test-non-ascii-dc (let [datacenter-info {:name "DåtåCenter1"} definitions-data (test-data/get-definitions-data "cassandra" helper/default-cassandra-version) built-configs (bc/build-configs definitions-data {:datacenter-info datacenter-info})] (is (= "D\\u00e5t\\u00e5Center1" (get-in built-configs [:cassandra-rackdc-properties :dc]))) ) )
(This potentially extends to other properties files, I haven't compiled an extensive list.)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Cassandra allows non-ASCII characters in datacenter names, for example
DåtåCenter1
.However, the
cassandra-rackdc.properties
file is decoded using ISO-8859-1, so it needs to use Unicode escapes:dc=D\u00e5t\u00e5Center1
Currently this is not the case, cass-config-builder writes the unescaped Unicode string:
Minimal test to reproduce this in
build_config_test.clj
:(This potentially extends to other properties files, I haven't compiled an extensive list.)
The text was updated successfully, but these errors were encountered: