edge
edge copied to clipboard
Missing error message unable to decrypt file (unencrypted object path)
uplink access create
has a new flag now to create an access grant with unencrypted object path.
I have created and registered 2 access grants with unencrypted object path and different encryption keys.
Expected Behavior
Both access grants can list all files but only one access grant can download and decrypt the files. The other access grant should fail to decrypt the files. Uplink cli is failing with failed to download part 0: uplink: decryption failed, check encryption key: cipher: message authentication failed
. That is not the best error message but it somehow explains what I need to fix in order to download the file.
Actual Behavior Linkshare doesn't show an error message. It can list the files. No error message for the file preview. Just a white page. No error message on download the file. I get an empty file back. That is not the kind of feedback that explains to me what I need to fix in order to get it working.
We have the same problem in the satellite's UI – maybe we should address both issues at the same time.
Change pkg/linksharing/sharing: handle decrypt error for grant w/o obj key enc mentions this issue.
Change pkg/linksharing/sharing: serve download errors as JSON mentions this issue.
Change pkg/linksharing/web: show notifications for failed downloads mentions this issue.
Change pkg/linksharing/sharing: handle decrypt error for grant w/o obj key enc mentions this issue.