From: me@... Date: 2014-08-19T12:54:49+00:00 Subject: [ruby-core:64456] [ruby-trunk - Bug #10147] URI parsing with ruby 2.2.0dev Issue #10147 has been updated by Ahmad Sherif. URI module is now using an RFC3986 parser by default (starting r46491), '[' and ']' characters are not allowed in a URI's query per the RFC. You can still use the old parser (RFC2396) like this ~~~ruby require 'uri' p = URI::Parser.new p.parse('//example.org/nested_optional_group?items[][key]=foo') ~~~ ---------------------------------------- Bug #10147: URI parsing with ruby 2.2.0dev https://bugs.ruby-lang.org/issues/10147#change-48404 * Author: Dieter Sp��th * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby 2.2.0dev (2014-08-18 trunk 47214) [x86_64-darwin13] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- Hi, the following uris can't be parsed any more (ruby: ruby 2.2.0dev (2014-08-18 trunk 47214) [x86_64-darwin13]) ` require 'uri' URI('//example.org/nested_optional_group?items[][key]=foo') URI('//example.org/nested_optional_group?items[key]=foo') URI('//example.org/nested_optional_group?items[]=foo') ` With ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0] this uris can be parsed. regards dieter -- https://bugs.ruby-lang.org/