← Back to team overview

ubuntu-phone team mailing list archive

Re: Oxide web browser and Nextcloud

 

On Tue, Nov 15, 2016 at 12:12 PM, Roberto Resoli <roberto@xxxxxxxxxxxxxx> wrote:
> Hello,
>
> I noted some problems using Ubuntu touch web browser (Oxide engine) on
> Nextcloud.
>
> It is impossible to download files, (all is well with other
> browsers/platforms). I have better described the issue on nextcloud forum:
>
> https://help.nextcloud.com/t/nc-on-ubuntu-touch-browser-error-in-sabredav-when-downloading-file/4904
>
> I have not opened a ticket, because I would prefer to open it towards
> the right project (Ubuntu touch or Nextcloud)?
>
> What do you think? Given that Nextcloud uses UbuntuCore for the
> Nextcloud box[1] (Nice!) I think this is quite relevant for Ubuntu
> lovers ...

It seems it’s a similar issue to https://launchpad.net/bugs/1548020.
When clicking the download button in the nextcloud UI, a request for
the file with a secret parameter is issued to the web server, and gets
a 200 response (OK). Oxide then cancels that request and passes the
parameters to the Ubuntu Download Manager, which re-issues the same
request to initiate the actual download. The second request is denied
(I’ve seen 401s and 503s), most probably because the secret is a
one-time token that has already been used:

::1 - - [15/Nov/2016:15:26:20 +0100] "GET
/nextcloud/remote.php/webdav/movie.mp4?downloadStartSecret=pjpu0984pl3odl9sbz0itqpvi
HTTP/1.1" 200 189307 "-" "Mozilla/5.0 (Linux; Ubuntu 16.04)
AppleWebKit/537.36 Chromium/54.0.2840.71 Safari/537.36"
127.0.0.1 - - [15/Nov/2016:15:26:27 +0100] "GET
/nextcloud/remote.php/webdav/movie.mp4?downloadStartSecret=pjpu0984pl3odl9sbz0itqpvi
HTTP/1.1" 401 1194 "-" "Mozilla/5.0 (Linux; Ubuntu 16.04)
AppleWebKit/537.36 Chromium/54.0.2840.71 Safari/537.36"

I will update the bug report to include the nextcloud use case, and
will bump its importance, although as things stand we don’t have a
clear solution to it.

Cheers,

 Olivier


Follow ups

References