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
** Summary changed:
- Download handling with OneTimeTokens
+ Direct download fails on seafile server
** Changed in: webbrowser-app (Ubuntu)
Status: New => Confirmed
** Changed in: webbrowser-app (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1548020
Title:
Direct download fails on seafile server
Status in webbrowser-app package in Ubuntu:
Confirmed
Bug description:
I'm hosting a webserver with seafile.
When I click on the Download link direktly, then choosing the app for
opening, the Download
aborts because of Http400 Error. This could be because the Download token
from the server are working just for one time. Nevertheless, if do
rightclick on the download link and select "save as", the download works
pretty fine.
I think, when clicking on such a link, a request to the server is issued,
which invalidates the
link for subsequent requests. The headers from the response to that request
are then passed to the download manager which will initiate the download by
issuing the request again, and the first request
initiated by the browser is cancelled. That’s indeed a bug in how
downloads are handled in the browser.
If nessesary I can provide a temporary download link for testing the
issues.
This happend on my Nexus 4 with OTA9.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1548020/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp