Open moritzraho opened 3 years ago
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-987
isn't it easier just to support it? I would just prevent it from throwing an error and move on
@purplecabbage yes, it's about generating the presign URL against the public container instead of the private one when the file starts with 'public/' prefix This needs fixing in two places:
Expected Behaviour
presignUrls for public files might be useful for handing over write or delete permissions, obviously read is not useful. we do not support it for now but still don't throw an error, and the user receives a non working presign URL
Actual Behaviour
via TVM credentials:
init
write('public/hello', 'world')
generatePresignURL('public/hello', { expiryInSeconds: 60, permissions: 'rwd' })
via BYO credentials:
write('public/hello', 'world')
generatePresignURL('public/hello', { expiryInSeconds: 60, permissions: 'rwd' })