Bug #8581

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

Added by Jeff Chan over 2 years ago. Updated over 2 years ago.

ruby -v:ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN


#1 Updated by Peter Hamilton over 2 years 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 over 2 years ago

That is correct.

I believe this should be closed.

#3 Updated by Charlie Somerville over 2 years ago

  • Status changed from Open to Rejected

Also available in: Atom PDF