Uploaded image for project: 'External DAMs'
  1. External DAMs
  2. EXTDAM-333

S3AssetProvider should throw defined exceptions with invalid itemKey

    XMLWordPrintable

Details

    Description

      When REST module use S3AssetProvider to get asset, but input invalid/broken assetKey (this is very common):

      EXPECTED behavior : S3AssetProvider should throw defined exceptions

      CURRENT behavior : Not throw anything, return Asset

      This lead to further code using that Asset and get exceptions e.g software.amazon.awssdk.services.s3.model.NoSuchKeyException: The specified key does not exist.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                yen.lactue Yen Lac Tue
                chuong.doan Chuong Doan Huy
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 2d 0.75h
                      2d 0.75h