Bug 109318

Summary: xdg-open does not accept file://localhost/ URIs
Product: Portland Reporter: Richard Tollerton <rich.tollerton>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: rich.tollerton
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Richard Tollerton 2019-01-11 17:11:43 UTC
Presently, file://localhost/ URLs are totally unsupported: is_file_url_or_path
correctly considers them files, but they are undecoded and hence
check_input_file fails.

While the standardization surrounding file: URLs is admittedly vague [1], AFAIK,
*all* literature, and other implementations, unambiguously demonstrate that
file://localhost/ should be equivalent to file:/// :

- The "File URI specification" explicitly linked to from the xdg-utils homepage [2]
- RFC 8089 section 1.1
- RFC 1738 section 3.10
- Observed implementations of Windows `start`, macOS `open`, Firefox, Chrome, IE

Proposed fix is in the merge request at https://gitlab.freedesktop.org/xdg/xdg-utils/merge_requests/1 .
Comment 1 Rex Dieter 2019-01-11 19:10:42 UTC
merge_request processed, thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.