Skip to content

Commit

Permalink
Merge pull request #16552 from iterate-ch/bugfix/GH-16551
Browse files Browse the repository at this point in the history
Fix #16551.
  • Loading branch information
dkocher authored Nov 20, 2024
2 parents 8c9dbd7 + 6f70dc3 commit 9eb4c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3/src/main/java/ch/cyberduck/core/s3/S3UrlProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public DescriptiveUrlBag toUrl(final Path file) {
// AWS services require specifying an Amazon S3 bucket using S3://bucket
list.add(new DescriptiveUrl(URI.create(String.format("s3://%s%s",
containerService.getContainer(file).getName(),
file.isRoot() ? Path.DELIMITER : containerService.isContainer(file) ? Path.DELIMITER : String.format("/%s", URIEncoder.encode(containerService.getKey(file))))),
file.isRoot() ? Path.DELIMITER : containerService.isContainer(file) ? Path.DELIMITER : String.format("/%s", containerService.getKey(file)))),
DescriptiveUrl.Type.provider,
MessageFormat.format(LocaleFactory.localizedString("{0} URL"), "S3")));
// Filter by matching container name
Expand Down

0 comments on commit 9eb4c59

Please sign in to comment.