Comment 10 for bug 1548020

Revision history for this message
Olivier Tilloy (osomon) wrote : Re: Download handling with OneTimeTokens

The original HTTP request that happens when clicking the download button looks like this:

GET /lib/1a5035f8-cd5d-4231-83ad-770b0ca096a3/file/Psalm23.txt?dl=1 HTTP/1.1

HTTP/1.1 302 FOUND
Location: /seafhttp/files/32a0a451-086b-4cbc-b6da-6d80f43df463/Psalm23.txt

GET /seafhttp/files/32a0a451-086b-4cbc-b6da-6d80f43df463/Psalm23.txt HTTP/1.1

HTTP/1.1 200 OK
Content-Disposition: attachment;filename="Psalm23.txt"
[contents of the file]

Now when confirming the download in the browser, the request looks like this:

GET /seafhttp/files/32a0a451-086b-4cbc-b6da-6d80f43df463/Psalm23.txt HTTP/1.1

HTTP/1.1 400 Bad Request
Bad access token