fsspec / fsspec/filesystem_spec
Unquote Username and Password
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 490
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 38
Description
Apologies for brevity, I’m on my cell.
I have a bunch or URLs that contain usernames and passwords. All “special” characters have been URL Encoded (“quoted”, to use urllib’s term). But when using url_to_fs, any URL’s with encoded characters fail.
I think there’s a simple fix. If you wrap these two in urllib’s “unquote”.
If that’s not possible, I’ll implement a simplified equivalent of url_to_fs. Just figured I’d ask first :)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in fsspec/utils.py around the url_to_fs code at the linked line, and inspect how the username and password are extracted from URLs. Check Python urllib’s unquote behavior and existing callers before deciding how encoded credentials should be handled. Done means URLs with encoded username or password characters are parsed successfully without breaking unencoded credentials.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100