Bug #8581

URI.parse can't parse URI: (URI::InvalidURIError) "bad URI(is not URI?

Added by Jeff Chan 10 months ago. Updated 9 months ago.

[ruby-core:55706]
Status:Rejected
Priority:Normal
Assignee:-
Category:-
Target version:-
ruby -v:ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

History

#1 Updated by Peter Hamilton 10 months ago

According to http://tools.ietf.org/html/rfc3986 '' is not a valid character in a query string.

According to the document, '' is not neither listed as a reserved or unreserved character. It should therefore be percent encoded.

The string you provide is therefore not a valid URI and as such URI.parse is correct in throwing a URI::InvalidURIError.

#2 Updated by Steve Klabnik 9 months ago

That is correct.

I believe this should be closed.

#3 Updated by Charlie Somerville 9 months ago

  • Status changed from Open to Rejected

Also available in: Atom PDF