[EXTDAM-274] S3-cloud-connector: Read region from Microprofile Created: 06/May/21  Updated: 10/May/21  Resolved: 10/May/21

Status: Closed
Project: External DAMs
Component/s: s3
Affects Version/s: 1.2.0
Fix Version/s: 1.2.0

Type: Bug Priority: Neutral
Reporter: Jesus Alonso Assignee: Jesus Alonso
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: Imaging and External DAM
Sprint: Cloud Service 8
Story Points: 1

 Description   

Steps to reproduce

  1.  Upload a new assets
  2.  There is an error getting the bucket location
	at software.amazon.awssdk.services.s3.DefaultS3Client.getBucketLocation(DefaultS3Client.java:2726) ~[s3-2.13.41.jar:?]
	at info.magnolia.external.dam.s3.service.AmazonS3GatewayImpl.getRegionOfBucket(AmazonS3GatewayImpl.java:339) ~[magnolia-external-dam-s3-2.0-cloud-SNAPSHOT.jar:?]
	at info.magnolia.external.dam.s3.service.DataProviderS3GatewayWrapper.getRegionOfBucket(DataProviderS3GatewayWrapper.java:204) ~[magnolia-external-dam-s3-2.0-cloud-SNAPSHOT.jar:?]
	at info.magnolia.external.dam.s3.datasource.S3CloudAssetProvider.getRootFolder(S3CloudAssetProvider.java:92) ~[magnolia-external-dam-s3-cloud-2.0-cloud-SNAPSHOT.jar:?]
	at info.magnolia.external.dam.s3.app.contentview.browser.S3AssetListDataProvider.parentFolder(S3AssetListDataProvider.java:233) ~[magnolia-external-dam-s3-2.0-cloud-SNAPSHOT.jar:?]
	at info.magnolia.external.dam.s3.app.contentview.browser.S3AssetListDataProvider.sizeInBackEnd(S3AssetListDataProvider.java:79) ~[magnolia-external-dam-s3-2.0-cloud-SNAPSHOT.jar:?] 

Expected results

No error

Development notes

Instead of obtaining the region using the API, we will add it in the Microprofile configuration. There are some conflict with the permissions after the permissions isolation task.


Generated at Mon Feb 12 01:53:36 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.