Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Files Download -> URI too long #4715

Closed
tbo2k9 opened this issue Sep 4, 2013 · 22 comments
Closed

Multiple Files Download -> URI too long #4715

tbo2k9 opened this issue Sep 4, 2013 · 22 comments

Comments

@tbo2k9
Copy link

tbo2k9 commented Sep 4, 2013

This happens with owncload 5 until the latest 5.0.10

When you mark too many files (like 300) at once for download, it results in a too long URI.

With Firefox you get:
request failed: URI too long (longer than 8190)

With Internet Explorer you get an ugly owncloud error message "cloud not found" and a list of all files in the array.

owncloud.log:
[...]5982.JPG","IMG_5983): failed to open stream:File name too long at /var/www/owncloud/lib/files/storage/local.php#146","level":2,"time":1378210282}

This is possible due to the request being submitted via GET and not by POST.
If this is by design, the error should be catched (too many files, try to use a folder instead)

@Niduroki
Copy link
Member

Niduroki commented Sep 4, 2013

@DeepDiver1975 @bartv2

@bartv2
Copy link
Contributor

bartv2 commented Sep 4, 2013

@icewind1991 any idea why it uses GET?

@icewind1991
Copy link
Contributor

GET is used because downloading files isn't done by ajax but by redirecting the browser to the download url

@DeepDiver1975
Copy link
Member

@schiesbn if I recall you added a fix for this - right? THX

@PVince81
Copy link
Contributor

PVince81 commented Apr 3, 2014

There is a fix on master that fixes the "select all files" and either sends "allfiles=true" in the URL or downloads the parent folder.
This however doesn't fix the issue if the user doesn't select all files but just a subset.

In the future we should use POST when downloading multiple files.

@MorrisJobke
Copy link
Contributor

@PVince81 Is this fixed?

@PVince81
Copy link
Contributor

It is partially fixed.
If you select all files it will work fine, but if you individually select a lot of files (without having them all selected) then there is still a risk of the URL becoming too long.

I'd say let's keep it, maybe there's a way to do this with a POST call.

@PVince81
Copy link
Contributor

@icewind1991 pointed out that GET is used because of the redirect, but it should be possible with other techniques like using a hidden form to POST to a separate window / iframe to trigger download.

@DeepDiver1975 DeepDiver1975 added this to the 8.2-next milestone Mar 20, 2015
@DeepDiver1975
Copy link
Member

Let's address this in the scope of 8.2 as we plan to touch the files app with respect to operate via webdav

@simonschaufi
Copy link

related to owncloud/gallery/issues/159

@PVince81
Copy link
Contributor

Using Webdav won't help with this. We still need a special endpoint (webdav or not) that accepts POST values instead of GET for the zip file download.

@DeepDiver1975
Copy link
Member

@PVince81
Copy link
Contributor

Moving to webdav for downloads in 9.0, changing milestone to 9.0.

CC @cmonteroluque

@PVince81 PVince81 modified the milestones: 9.0-next, 8.2-current Sep 21, 2015
@ghost
Copy link

ghost commented Sep 22, 2015

nod

@PVince81
Copy link
Contributor

Using Webdav won't help with this. We still need a special endpoint (webdav or not) that accepts POST values instead of GET for the zip file download.

Still an issue in 9.0.

@PVince81
Copy link
Contributor

I wonder if a REPORT request would be adequate for this...

@ghost ghost modified the milestones: 9.0.1-next-maintenance, 9.0-current Feb 17, 2016
@PVince81
Copy link
Contributor

PVince81 commented Mar 2, 2016

Requires zip endpoint to download multiple files: #17014

@ghost ghost modified the milestones: 9.0.2-next-maintenance, 9.0.1-current-maintenance Mar 9, 2016
@ghost ghost modified the milestones: 9.0.3-next-maintenance, 9.0.2-current-maintenance Apr 19, 2016
@PVince81 PVince81 modified the milestones: 9.0.4-next-maintenance, 9.0.3-current-maintenance Jun 2, 2016
@PVince81
Copy link
Contributor

This is not fixable without introducing new APIs/endpoints, moving to 9.2.

@PVince81 PVince81 modified the milestones: 9.2, 9.0.4 Jul 18, 2016
@PVince81
Copy link
Contributor

Looks like we'd rather need a special "POST" endpoint where the list of files can be posted. This doesn't sounds very Webdav-y or REST-y.

@DeepDiver1975

Needs further research.

@PVince81 PVince81 modified the milestones: backlog, 10.0 Jan 13, 2017
@hodyroff
Copy link

Can we just have a good error message or difficult/impossible?

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests