[EXTDAM-238] S3: getItem returns size 0 for assets Created: 18/Feb/21  Updated: 05/Mar/21  Resolved: 02/Mar/21

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

Type: Improvement 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

Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[X]  Architecture Decision Record (ADR)
Documentation update required:
Yes
Epic Link: Imaging and External DAM
Story Points: 2

 Description   

The S3AssetProvider delegates into AmazonS3GatewayImpl who creates the asset with

return S3Asset.builder()
        .bucket(bucket)
        .key(key)
        .lastModified(Instant.now())
        .size(0L)
        .region(region)
        .parent(parent)
        .assetProvider(s3AssetProvider.get())
        .build(); 

AC

  • There is a configuration variable for obtaining the size or not
  • If it is set, the size is properly obtained

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