eDeviser: I was able to observe the issue firsthand thanks to the test
credentials provided by Lukas (thanks!).

What I’m seeing is that tapping/clicking on a text file (the only file I
have handy in the test instance) displays the contents of that file on a
page. That page has a "Download" button, which, when clicked, triggers
the HTTP 400 error. The URL that it tries to download when this fails is
of the form http://[domain]/seafhttp/files/[uniqueID]/filename.txt.

Now when I get back to the file listing, if I long-press on the text
file and choose "save link" from the context menu, the download goes
through and the URL downloaded is of the form
http://[domain]/lib/[uniqueID]/file/filename.txt. However the contents
of the file that was actually downloaded is a HTML login page, not the
text file.

Can you please confirm you’re seeing the same?

-- 
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:
  Download handling with OneTimeTokens

Status in webbrowser-app package in Ubuntu:
  New

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     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to