-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
414 Request-URI Too Long at download in web-interface #7935
Comments
Then lets just always move to post. I prefer to have only 1 code path. |
👍 |
Hello! All the same on my nextcloud-snap from 16/edge channel. I can download whole directory (groupfolder) in zip-archive, but faces with "Request-URI Too Long" when trying download many files (especially with long enough names). When copying URI to notepad, it makes some names convertation (like this: index.php/apps/files/ajax/download.php?dir=%2Fdirname&files=%5B%22%D0%90) and here is more than 19K symbols. |
I guess that the solution is to use POST instead of GET for file download. What I did to work around this issue was to add Translated into my Dockerfile, this means: FROM nextcloud:apache
# Workaround for 414 request too long errors -- https://github.com/nextcloud/server/issues/7935
RUN sed -i '/^# Global configuration.*/a LimitRequestLine 65536\nLimitRequestFieldsize 65536' /etc/apache2/apache2.conf |
This comment was marked as resolved.
This comment was marked as resolved.
Facing the exact same issue in Files with NC version 26... can this not be solved? Is it a configuration issue or indeed a code issue? |
FYI @nextcloud/server |
Able to reproduce when enough files with excessively long names are selected. E.g
Screenshot |
Steps to reproduce
Expected behaviour
When selecting many files to download as single zip in the web-interface, the filenames should be sent as POST-data and the webserver should provide the requested zip-archive.
Actual behaviour
All filenames are appended to the request-uri as GET-variables and the request fails with the error "414 Request-URI Too Long"
Server configuration
Operating system: Debian GNU/Linux 8.10 (jessie)
Web server: Apache/2.4.10 (Debian)
Database: mysql Ver 14.14 Distrib 5.5.58, for debian-linux-gnu (x86_64) using readline 6.3
PHP version: 5.6.33-0+deb8u1
Nextcloud version: 12.0.4.3
Updated from an older Nextcloud/ownCloud or fresh install: updated from previous stable Nextcloud version
Where did you install Nextcloud from: Official installer
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Vivaldi 1.14.1064.3 (Offizieller Build) (64-Bit) (Chromium-Derivative: Chrome/62.0.3202.97)
(Browser independent problem)
Operating system: Win10
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: