Project

General

Profile

Bug #8581

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

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

Status:
Rejected
Priority:
Normal
Assignee:
-
ruby -v:
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
[ruby-core:55706]

History

#1 [ruby-core:55724] Updated by Peter Hamilton over 3 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 [ruby-core:56403] Updated by Steve Klabnik over 3 years ago

That is correct.

I believe this should be closed.

#3 [ruby-core:56406] Updated by Charlie Somerville over 3 years ago

  • Status changed from Open to Rejected

Also available in: Atom PDF