python-hyper / python-hyper/rfc3986
Empty (but present) authority component lost
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 189
- Forks
- 38
- Avg merge
- 13h 36m
- Merged PRs (30d)
- 1
Description
The library in its latest pip version (1.5.0; also observed in 1.4 as shipped in Debian) does not distinguish between present and absent authority components:
>>> rfc3986.urlparse('foo:///').unsplit()
'foo:/'
I don't see how RFC3986 would justify normalizing this away, especially given the comment on page41 that in some cases a URI would be normalized to one that has an empty (not absent) authority.
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 with the rfc3986.urlparse('foo:///').unsplit() reproduction and trace how the authority component is represented and serialized. Compare the present empty authority with an absent authority under RFC3986; done means the empty component is preserved rather than normalized away.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100