Project

General

Profile

Actions

Feature #15861

open

Correctly parse `file:c:/path/to/file` URIs

Added by deivid (David Rodríguez) over 5 years ago. Updated over 5 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:92711]

Description

Recently ruby has getting better at parsing URIs using the "file" scheme, with the addition of "URI::File". Still, some Windows edge cases are not implemented, and it would be nice to have them. For example, while the addressable gem can correct parse "file:c:/path/to/file", the builtin library is not that smart yet:

irb(main):001:0> URI.parse("file:c:/path/to/file").path
=> nil
irb(main):002:0> require 'addressable'
=> true
irb(main):003:0> Addressable::URI.parse("file:c:/path/to/file").path
=> "c:/path/to/file"

I think this would be a matter of implementing https://tools.ietf.org/html/rfc8089#appendix-E.2, which is not normative but it would be certainly nice to have.


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #14035: URI module always serializes to the minimal form insted of the traditional oneClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0