user/path test: fixes

This commit is contained in:
Peter Bieringer
2026-04-22 21:57:11 +02:00
parent 4b15e4b432
commit 8babd65ae8
3 changed files with 6 additions and 16 deletions

View File

@@ -168,18 +168,6 @@ class Application(ApplicationPartDelete, ApplicationPartHead,
self._validate_user_value = "no-unicode"
if self._validate_path_value not in ["strict", "no-unicode"]:
self._validate_path_value = "no-unicode"
if not self._storage._supports_problematic_chars or not self._storage._supports_trailing_whitespace:
if self._validate_user_value not in ["strict"]:
self._validate_user_value = "strict"
if self._validate_path_value not in ["strict"]:
self._validate_path_value = "strict"
logger.notice("validate user value: %r (enforced by limited support of collection storage)", self._validate_user_value)
logger.notice("validate path value: %r (enforced by limited support of collection storage)", self._validate_path_value)
elif not self._storage._supports_problematic_chars or not self._storage._supports_trailing_whitespace:
if self._validate_user_value not in ["strict"]:
self._validate_user_value = "strict"
if self._validate_path_value not in ["strict"]:
self._validate_path_value = "strict"
logger.notice("validate user value: %r (enforced by limited support of collection storage)", self._validate_user_value)
logger.notice("validate path value: %r (enforced by limited support of collection storage)", self._validate_path_value)
else: