Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog/@unreleased/pr-667.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: fix
fix:
description: StandaloneEncryptedFileSystem returns to its old behavior, of only
overriding the scheme when the uri uses a scheme
links:
- https://github.com/palantir/hadoop-crypto/pull/667
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ private static Function<Path, Path> setSchemeFunc(final String scheme) {

private static Function<URI, URI> setUriSchemeFunc(final String scheme) {
return uri -> {
if (uri.getScheme() == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Two quick things:

  • Do you have an example where things have broken when this scheme is set?
  • Can we write a test that illustrates this behavior in action?

return uri;
}
try {
return new URI(
scheme,
Expand Down