adobe / aio-lib-files

An abstraction on top of cloud blob storage exposing a file system like API
https://www.adobe.io
Apache License 2.0
10 stars 14 forks source link

Support presignUrls on public files or explicitely throw an error #81

Open moritzraho opened 3 years ago

moritzraho commented 3 years ago

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:

via BYO credentials:

aiojbot commented 3 years ago

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-987

purplecabbage commented 3 years ago

isn't it easier just to support it? I would just prevent it from throwing an error and move on

moritzraho commented 3 years ago

@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: