Bug #3594

URI class doesn't do file URL's properly.

Added by Neil Wilson about 5 years ago. Updated over 2 years ago.

Assignee:akira yamada
ruby -v:ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] Backport:


URI doesn't seem to output file URLs properly where there is an absolute path part.

For example.

require 'uri'

my_url = URI.parse("file:///var/lib/libvirt/images/")
p my_url.to_s


The double slash '//' should always appear according to the file URL specification.


#1 Updated by Akira Tanaka about 4 years ago

  • Project changed from Ruby to Ruby trunk
  • Assignee set to akira yamada

#2 Updated by Shyouhei Urabe over 3 years ago

  • Status changed from Open to Assigned

#3 Updated by Yusuke Endoh over 2 years ago

  • Description updated (diff)

Is this specified in RFC or any spec?

Yusuke Endoh mame@tsg.ne.jp

#4 Updated by Yui NARUSE over 2 years ago

mame (Yusuke Endoh) wrote:

Is this specified in RFC or any spec?

There's no available RFC of file URI scheme.

see also:
* http://en.wikipedia.org/wiki/File_URI_scheme
* http://suika.fam.cx/~wakaba/wiki/sw/n/file

Also available in: Atom PDF