Hey Olive! I am acutally not totally shure, that the problem is within
Ubuntu Touch, because I am just a Embedded Software Developer hosting a
webserver for fun. But in seafile/Forum, they told me it is not a
problem with the seafileWebserver. They told that it is caused by the
oneTimeTokens. Nevertheless downloads seems to be handled different, if
they are done by direct clicking or using reightClick>SaveAs. So here
are the logfiles:

>>This are the LogFiles with direkt clicking the download Link, they ended up 
>>with the http400 error:
/var/log/nginx $ tail -f seahub.access.log
192.168.0.11 - - [28/Feb/2016:13:19:37 +0100] "GET 
/lib/8ff5eba7-2ea3-4991-915f-25286518a523/file/2010618_wk42_web_30042010_2.pdf?dl=1
 HTTP/1.1" 302 5 "http://myserver.de/"; "Mozilla/5.0 (Linux; Ubuntu 14.04 like 
Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36"  

/var/log/nginx $ tail -f access.log
192.168.0.11 - - [28/Feb/2016:13:19:37 +0100] "GET 
/seafhttp/files/61342757-db0f-422c-a6f3-798c1db50e5f/2010618_wk42_web_30042010_2.pdf
 HTTP/1.1" 200 54237 "http://myserver.de/"; "Mozilla/5.0 (Linux; Ubuntu 14.04 
like Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36" 
                                                                
192.168.0.11 - - [28/Feb/2016:13:19:38 +0100] "GET 
/seafhttp/files/61342757-db0f-422c-a6f3-798c1db50e5f/2010618_wk42_web_30042010_2.pdf
 HTTP/1.1" 400 17 "http://myserver.de/"; "Mozilla/5.0 (Linux; Ubuntu 14.04 like 
Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36"


>>This are the Logs created by RightClick>SaveAs:
/var/log/nginx $ tail -f access.log
192.168.0.11 - - [28/Feb/2016:13:18:05 +0100] "GET 
/seafhttp/files/5a575ca4-1dd8-40e6-882e-eb0371779a02/2010618_wk42_web_30042010_2.pdf
 HTTP/1.1" 200 1652945 "http://myserver.de/"; "Mozilla/5.0 (Linux; Ubuntu 14.04 
like Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36"

/var/log/nginx $ tail -f seahub.access.log  
192.168.0.11 - - [28/Feb/2016:13:17:54 +0100] "GET 
/ajax/unseen-notices-count/?_=1456660224104 HTTP/1.1" 200 22 
"http://myserver.de/"; "Mozilla/5.0 (Linux; Ubuntu 14.04 like Android 4.4) 
AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36"                   
                  
192.168.0.11 - - [28/Feb/2016:13:18:00 +0100] "GET 
/lib/8ff5eba7-2ea3-4991-915f-25286518a523/file/2010618_wk42_web_30042010_2.pdf?dl=1
 HTTP/1.1" 302 5 "http://myserver.de/"; "Mozilla/5.0 (Linux; Ubuntu 14.04 like 
Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36"

-- 
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