Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand accepted windows URIs to support UNC paths #2237

Merged
merged 3 commits into from May 3, 2021

Conversation

dhoke4tdb
Copy link
Contributor

@dhoke4tdb dhoke4tdb commented Apr 27, 2021

Expand accepted windows URIs to allow access to commonly used windows UNC paths.

(Changes made are conditionally specific to _WIN32 so *nix URI processing should not be affected.)


TYPE: BUG
DESC: Expand accepted windows URIs.

@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #6445: file:// uri checking too restrictive.

@dhoke4tdb
Copy link
Contributor Author

Apart from testing I've done, @ihnorton has experimentally looked at this functionality and sees it as an improvement.

@dhoke4tdb dhoke4tdb changed the title Dlh/ch6445 file uri change Expand accepted windows URIs to support UNC paths Apr 27, 2021
Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix #2182

Copy link
Contributor

@joe-maley joe-maley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one minor typo, sorry

@@ -74,8 +74,12 @@ TEST_CASE("URI: Test file URIs", "[uri]") {
CHECK(!uri.is_invalid());
CHECK(URI::is_file(uri.to_string()));
CHECK(uri.to_string() == "file:///path");
#ifndef _WIN32
// note: "file://path" is an accepted URI form on windows for UNC
// level share viewing,but expected .is_invalid() on *nx.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*nx -> *nix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done (and a space added after a comma in same comment.)

@joe-maley joe-maley merged commit 06e3019 into dev May 3, 2021
@joe-maley joe-maley deleted the dlh/ch6445-file-uri-change branch May 3, 2021 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants