-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: URL-encode document names in document index client requests
Prior to this commit, we did not URL-encode document names when querying the document index. This caused problems when names have special characters, i.e., '/' or '?'. We do not need to URL-encode other parts of the URL (e.g., namespace or collection) as these are already constrained to URL-safe characters. In addition to this fix, this commit includes the following changes: - update `DocumentPath.from_slash_separated_str` to correctly delimit paths whose document name contains a forward slash. Ideally we'd remove both this and `DocumentPath.to_slash_separated_str` in the future. - parametrize tests to include special characters and increase coverage - migrate to new document index collection to avoid CI conflicts
- Loading branch information
1 parent
1021174
commit 4117e7d
Showing
3 changed files
with
65 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters