Bug #6386
closedURI.parse should raise an error for invalid uri 'http:/'
Description
I've added a test to cover this, or you can use the following workaround[1].
Files
Updated by drbrain (Eric Hodel) over 12 years ago
- Assignee changed from drbrain (Eric Hodel) to akira (akira yamada)
- ruby -v changed from 2.0.0 to -
Switched to URI maintainer
Updated by zzak (zzak _) over 12 years ago
Here's a gist[1] of the same workaround, in case the pastie gets pruned.
Updated by ayumin (Ayumu AIZAWA) over 12 years ago
- Status changed from Open to Assigned
Updated by mame (Yusuke Endoh) over 11 years ago
- Subject changed from URI.parse should raise an error for invalid uri 'http:/' to URI.parse should raise an error for invalid uri 'http:/'
- Target version changed from 2.0.0 to 2.1.0
The URI maintainer, akira, is inactive for a long time.
I think that he should be discharged.
http://bugs.ruby-lang.org/projects/ruby/wiki/MaintainerDischargingProcess
--
Yusuke Endoh mame@tsg.ne.jp
Updated by naruse (Yui NARUSE) over 11 years ago
- Status changed from Assigned to Rejected
"http:/foo" is valid absolute-URI.
see http://tools.ietf.org/html/rfc3986
absolute-URI = scheme ":" hier-part [ "?" query ]
scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
hier-part = "//" authority path-abempty
/ path-absolute
/ path-rootless
/ path-empty
path-absolute = "/" [ segment-nz *( "/" segment ) ]
segment = pchar
segment-nz = 1pchar
pchar = unreserved / pct-encoded / sub-delims / ":" / "@"