fixed bucketname in download operation

This commit is contained in:
roberto cirillo 2021-01-07 15:29:50 +01:00
parent d94e7f529e
commit 9c43a86630
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ public class S3PluginManager extends TransportManager {
@Override
public Object get(Download download) throws FileNotFoundException, IOException {
return BucketOperator.getInstance(s3).getObject(bucket, Utils.convertToS3Format(download.getResource().getRemotePath()), download.getLocalPath());
String bucketName=Utils.convertToS3Format(download.getResource().getRootPath());
return BucketOperator.getInstance(s3).getObject(bucketName, Utils.convertToS3Format(download.getResource().getRemotePath()), download.getLocalPath());
}
@Override