Bug 109318 - xdg-open does not accept file://localhost/ URIs
Summary: xdg-open does not accept file://localhost/ URIs
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Portland Bugs
QA Contact:
Depends on:
Reported: 2019-01-11 17:11 UTC by Richard Tollerton
Modified: 2019-01-11 19:10 UTC (History)
1 user (show)

See Also:
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.