Skip to content

Commit

Permalink
Merge pull request #29 from ksugar/uri-port-number
Browse files Browse the repository at this point in the history
Fix handling a port number in URI
  • Loading branch information
cmhulbert authored Apr 17, 2024
2 parents c96e145 + 7ff2183 commit 7cd782d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static AmazonS3 createS3(final String uri, @Nullable final String s3Endpo
// if AmazonS3URI does not like the form of the uri
try {
final URI asURI = new URI(uri);
final URI endpointUri = new URI(asURI.getScheme(), asURI.getAuthority(), null, null);
final URI endpointUri = new URI(asURI.getScheme(), asURI.getAuthority(), null, null, null);
return createS3(AmazonS3Utils.getS3Bucket(uri), s3Credentials, new AwsClientBuilder.EndpointConfiguration(endpointUri.toString(), null), null);
} catch (final URISyntaxException e1) {
throw new N5Exception("Could not create s3 client from uri: " + uri, e1);
Expand Down

0 comments on commit 7cd782d

Please sign in to comment.