Bug #3594

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

Added by Neil Wilson over 3 years ago. Updated over 1 year ago.

[ruby-core:31397]
Status:Assigned
Priority:Normal
Assignee:akira yamada
Category:-
Target version:-
ruby -v:ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] Backport:

Description

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

For example.

require 'uri'

myurl = 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 almost 3 years ago

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

#2 Updated by Shyouhei Urabe about 2 years ago

  • Status changed from Open to Assigned

#3 Updated by Yusuke Endoh over 1 year ago

  • Description updated (diff)

Is this specified in RFC or any spec?

Yusuke Endoh mame@tsg.ne.jp

#4 Updated by Yui NARUSE over 1 year 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