Skip to content

Commit af94dd8

Browse files
committed
RavenDB-26793 Skip all C0 control characters in custom-entity-name test
RavenDB now rejects control characters in document ids (including the generated HiLo id). The test injected control chars 1..13 into the collection name via a guard that only skipped 14..31, so it failed against current 6.2/7.2 servers. Skip the whole C0 control range (ord <= 31).
1 parent 4bb360d commit af94dd8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ravendb/tests/jvm_migrated_tests/client_tests/test_custom_entity_name.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def _customize_store(self, store: DocumentStore) -> None:
100100
)
101101

102102
def __test_when_collection_and_id_contain_special_chars(self, c: str) -> None:
103-
if 14 <= ord(c) <= 31:
103+
# RavenDB now rejects control characters in document ids (including the generated HiLo id),
104+
# so skip the whole C0 control range rather than only 14..31.
105+
if ord(c) <= 31:
104106
return
105107

106108
self.c = c

0 commit comments

Comments
 (0)