Bug 42357 - App Center Self Service: upload fails for (very) big files
App Center Self Service: upload fails for (very) big files
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-4-errata
Assigned To: Florian Best
Eduard Mai
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-12 16:45 CEST by Felix Botner
Modified: 2016-12-01 16:27 CET (History)
4 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
patch (1.90 KB, patch)
2016-10-27 12:11 CEST, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2016-09-12 16:45:16 CEST
Tried to upload a 190MB debian package to the selfservice. Brower got stuck and the upload never finished.

Browser dev tools said

Bad Gateway
The proxy server received an invalidresponse from an upstream server.

for the upload request.

Apache log file:
Im apache Error Log sieht man folgendes:

[Fri Sep 09 16:51:02 2016] [error] [client 82.198.197.8] File does not exist: /var/www/univention-management-console/js_$20160809234802$/dijit/themes/umc/icons/scalable/.svg, referer: https://selfservice.software-univention.de/univention-management-console/?lang=de-DE
[Fri Sep 09 16:51:18 2016] [error] (103)Software caused connection abort: proxy: pass request body failed to 127.0.0.1:8090 (127.0.0.1)
[Fri Sep 09 16:51:18 2016] [error] proxy: pass request body failed to 127.0.0.1:8090 (127.0.0.1) from 82.198.197.8 ()
Comment 1 Florian Best univentionstaff 2016-09-12 17:13:07 CEST
How long did the upload take exactly? You can see this in the network console of chromium.
Comment 2 Felix Botner univentionstaff 2016-09-12 17:18:51 CEST
(In reply to Florian Best from comment #1)
> How long did the upload take exactly? You can see this in the network
> console of chromium.

not to long, got error messages in dev tools and apache after maybe 1 or 2 minutes, but the UMC loading screen never went away
Comment 3 Florian Best univentionstaff 2016-10-27 12:11:44 CEST
Created attachment 8161 [details]
patch

Apply the patch and set umc/http/max_request_body_size=0 and there is no size limitation anymore :)
Comment 4 Florian Best univentionstaff 2016-10-27 12:16:50 CEST
And you need to set "umc/server/upload/max" because the UMC-Server checks also for the size of each uploaded file.
Comment 5 Dirk Wiesenthal univentionstaff 2016-10-27 13:06:53 CEST
Thanks!

Do we need to set this variable also in a apache config file? I have applied the patch to Self Service. Should be fixed along with the next frontend update, otherwise the patch is lost.
Comment 6 Florian Best univentionstaff 2016-10-27 13:20:35 CEST
(In reply to Dirk Wiesenthal from comment #5)
> Thanks!
> 
> Do we need to set this variable also in a apache config file? I have applied
> the patch to Self Service. Should be fixed along with the next frontend
> update, otherwise the patch is lost.

Nothing needs to be done in apache. The default in apache is 0:
https://httpd.apache.org/docs/2.4/de/mod/core.html#limitrequestbody
Comment 7 Florian Best univentionstaff 2016-11-11 14:14:07 CET
univention-management-console-frontend.yaml:
r74349 | YAML Bug #42357

univention-management-console.yaml:
r74349 | YAML Bug #42357
r74348 | Bug #42357: The maximum request size can now be configured via the UCR variable umc/http/max_request_body_size.

univention-management-console-frontend (5.0.63-50):
r74348 | Bug #42357: The maximum request size can now be configured via the UCR variable umc/http/max_request_body_size.

UCS 4.2 merge:
univention-management-console (9.0.13-1):
r74350 | Bug #42357: The maximum request size can now be configured via the UCR variable umc/http/max_request_body_size.
Comment 8 Eduard Mai univentionstaff 2016-12-01 13:06:56 CET
Changes work fine for UCS 4.1-4. VERIFIED.
Comment 9 Janek Walkenhorst univentionstaff 2016-12-01 16:27:12 CET
<http://errata.software-univention.de/ucs/4.1/349.html>