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

Replace toPath().toString() with getURIString() #1719

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Conversation

lbergelson
Copy link
Member

@cmnbroad This is a fix for an issue that @kshakir discovered. It dropping the scheme because it's using toPath().toString() instead of either toPath().toUri().toString() or getURIString().

I added a JIMFS test which fails without the changes. In a second commit I refactored the code with the optionals a bit. I think it's clearer.

* Replace toPath().toString() with toUriString() this should prevent the scheme from being cutoff unintentionally
Copy link
Collaborator

@cmnbroad cmnbroad left a comment

Choose a reason for hiding this comment

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

Looks good - thx for catching this.

@cmnbroad cmnbroad merged commit 1cb5f07 into master Oct 7, 2024
4 checks passed
@cmnbroad cmnbroad deleted the lb_use_full_uri branch October 7, 2024 13:46
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.

2 participants