301 redirects do not escape non-ASCII characters in the redirect URLs
Open
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 61
- Forks
- 22
- Avg merge
- 15m
- Merged PRs (30d)
- 2
Description
For instance:
require 'open-uri'
URI.open("https://old.reddit.com/comments/1i8cnq3")
Will throw:
rfc3986_parser.rb:84:in `split': URI must be ascii only "https://old.reddit.com/r/france/comments/1i8cnq3/reddit_ninterf\xC3\xA8rera_pas_avec_les_utilisateurs/" (URI::InvalidURIError)
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 by reproducing the issue with the require 'open-uri' and URI.open example shown in the report, then trace the redirect handling that produces the non-ASCII URL. Done means the same redirect URL is escaped appropriately and the example no longer raises URI::InvalidURIError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100