Project

General

Profile

Actions

Bug #10402

closed

URI regression in 2.2.0-preview1 (bad URI(is not URI?): URI::InvalidURIError)

Added by JuanitoFatas (Juanito Fatas) over 9 years ago. Updated almost 9 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.2.0preview1 (2014-09-17 trunk 47616) [x86_64-darwin13]
[ruby-core:65800]

Description

$ ruby -v -ruri -e "URI 'http://example.com/?a[]=b&a[]=c'"
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]
$ ruby -v -ruri -e "URI 'http://example.com/?a[]=b&a[]=c'"
ruby 2.2.0preview1 (2014-09-17 trunk 47616) [x86_64-darwin13]
/Users/Juan/.rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/uri/rfc3986_parser.rb:47:in `split': bad URI(is not URI?): http://example.com/?a[]=b&a[]=c (URI::InvalidURIError)
	from /Users/Juan/.rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/uri/rfc3986_parser.rb:53:in `parse'
	from /Users/Juan/.rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/uri/common.rb:226:in `parse'
	from /Users/Juan/.rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/uri/common.rb:713:in `URI'
	from -e:1:in `<main>'

Found in tarcieri/http gem's test.


Related issues 2 (0 open2 closed)

Related to Ruby master - Feature #2542: URI lib should be updated to RFC 3986Closednaruse (Yui NARUSE)01/01/2010Actions
Related to Ruby master - Bug #11275: RFC3986_Parser accepts invalid URIs containing %Closedakira (akira yamada)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0