Skip to content

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

Merged
cmnbroad merged 2 commits intomasterfrom
lb_use_full_uri
Oct 7, 2024
Merged

Replace toPath().toString() with getURIString()#1719
cmnbroad merged 2 commits intomasterfrom
lb_use_full_uri

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
@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