fixed bucketname in download operation

master
roberto cirillo 3 years ago
parent d94e7f529e
commit 9c43a86630

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

Loading…
Cancel
Save