Repository navigation
Bugfix: percent-encode HTTP(S) URL paths in pathlike_to_fs - #91
Open
BrianWhitneyAI wants to merge 1 commit into
Open
BrianWhitneyAI wants to merge 1 commit into
BrianWhitneyAI wants to merge 1 commit into
Conversation
Native HTTP clients such as libCZI's curl stream reject URLs with literal spaces. Encode http(s) paths so they are valid, keeping existing escapes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
BrianWhitneyAI
requested review from
SeanDuHare,
aswallace,
kmitcham,
pgarrison,
saeliddp,
smishra3 and
toloudis
November 26, 2026 18:23
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to Relevant Issue
Resolves bioio-devs/bioio#239
Description of Changes
pathlike_to_fsreturnedhttp(s)URLs with literal spaces unchanged. fsspec/aiohttp escape these when fetching, but some backends such as inbioio-czihand the path to libCZI's curl stream, which doesnt support unencoded urls.bioio_base/io.py: forhttp://andhttps://paths, a singleurllib.parse.quotecall with all URL delimiters (and%) marked safe. Only spaces, non-ASCII and other illegal characters are encoded; existing%XXescapes are not double-encoded.s3://, other schemes and local paths are untouched as they are not effected.Credit to @rpinho for diagnosing the issue and the original approach in #90, which this simplifies.
🤖 Generated with Claude Code