Project

General

Profile

Bug #3594

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

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

Status:
Assigned
Priority:
Normal
Assignee:
ruby -v:
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
Backport:
2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
[ruby-core:31397]

Description

=begin
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

"file:/var/lib/libvirt/images/"

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

History

#1 Updated by Akira Tanaka over 4 years ago

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

#2 Updated by Shyouhei Urabe almost 4 years ago

  • Status changed from Open to Assigned

#3 [ruby-core:50719] Updated by Yusuke Endoh about 3 years ago

  • Description updated (diff)

Is this specified in RFC or any spec?

--
Yusuke Endoh mame@tsg.ne.jp

#4 [ruby-core:50722] Updated by Yui NARUSE about 3 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