You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 22, 2021. It is now read-only.
The file shouldn't be deleted off the server if it wasn't successfully downloaded.
We should perhaps do better data validation and messaging to say things like "invalid delete_token" (although that probably doesn't mean anything to an end-user), or something that lets the user know that they maybe didn't copy the entire URL or something else happened.
The text was updated successfully, but these errors were encountered:
If you're talking about the hash parameter in the URL: the parameter you're changing is the decryption token, not the delete token. The delete token is stored in local storage and is sent as part of a delete request only. The server never sees the decryption token, so there is no way to validate whether or not it's valid server-side. The file is completely client side at this point but only downloads to the file system from the browser if the decryption finishes successfully.
Maybe we can check the URL decryption token in the browser before ever issuing a download request to the server?
Found in https://fileshare.stage.mozaws.net/__version__ (a7fcb1a):
Steps to reproduce:
delete_token
in the URL. In my case, the random URL is https://fileshare.stage.mozaws.net/download/f9037eccaa5004e4c20db610044d0f95/#jcem2Ds6WLyL4HZ0yyagiA.Actual results:
The Dev Tools console says:
And
But looking at my downloaded files, it doesn't look like the file actually ever downloaded.
Going to the URL again, it seems like the download has been deleted from the server, but never actually successfully downloaded to my computer:
https://fileshare.stage.mozaws.net/download/f9037eccaa5004e4c20db610044d0f95/#jcem now says:
Expected results:
The text was updated successfully, but these errors were encountered: