File tree 1 file changed +6
-6
lines changed
file-manager/src/main/scala/it/pagopa/interop/commons/files/service/impl
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -167,12 +167,12 @@ final class S3ManagerImpl(blockingExecutionContext: ExecutionContextExecutor)(
167
167
168
168
def calcContentMd5 (byteArray : Array [Byte ]): String = new String (Base64 .encodeBase64(DigestUtils .md5(byteArray)))
169
169
170
- override def generateGetPresignedUrl (containerPath : String , path : String ): Try [String ] = {
170
+ override def generateGetPresignedUrl (bucketName : String , keyName : String ): Try [String ] = {
171
171
Using (S3Presigner .create()) { s3Presigner =>
172
172
val objectRequest : GetObjectRequest = GetObjectRequest
173
173
.builder()
174
- .bucket(containerPath )
175
- .key(path )
174
+ .bucket(bucketName )
175
+ .key(keyName )
176
176
.build()
177
177
178
178
val presignRequest : GetObjectPresignRequest = GetObjectPresignRequest
@@ -186,12 +186,12 @@ final class S3ManagerImpl(blockingExecutionContext: ExecutionContextExecutor)(
186
186
}
187
187
}
188
188
189
- override def generatePutPresignedUrl (containerPath : String , path : String ): Try [String ] = {
189
+ override def generatePutPresignedUrl (bucketName : String , keyName : String ): Try [String ] = {
190
190
Using (S3Presigner .create()) { s3Presigner =>
191
191
val objectRequest : PutObjectRequest = PutObjectRequest
192
192
.builder()
193
- .bucket(containerPath )
194
- .key(path )
193
+ .bucket(bucketName )
194
+ .key(keyName )
195
195
.build()
196
196
197
197
val presignRequest : PutObjectPresignRequest = PutObjectPresignRequest
You can’t perform that action at this time.
0 commit comments