Project

General

Profile

Actions

Bug #25155

closed

Resources upload over 8 MB show error in log and not in UI

Added by Elaad FURREEDAN 5 months ago. Updated 2 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
I was bothered the first time
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Medium
Priority:
6
Name check:
To do
Fix check:
Checked
Regression:
No

Description

If we try to upload a file over 8Mb in the file manager in technique editor, it generates an error notification without any information.
In the webapp logs we can see exception raised :

2024-07-16 08:52:32+0000 ERROR net.liftweb.http.LiftRules - Exception being returned to browser when processing /secure/api/resourceExplorer/toto_hello/1.0/ncf_techniques
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (4327145850) exceeds the configured maximum (8388608)
>-at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:1007)
>-at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:334)
>-at org.apache.commons.fileupload.servlet.ServletFileUpload.getItemIterator(ServletFileUpload.java:152)
>-at net.liftweb.http.provider.servlet.HTTPRequestServlet$$anon$1.<init>(HTTPRequestServlet.scala:139)
>-at net.liftweb.http.provider.servlet.HTTPRequestServlet.extractFiles(HTTPRequestServlet.scala:129)
>-at net.liftweb.http.Req$.$anonfun$apply$14(Req.scala:479)
>-at net.liftweb.http.AvoidGAL.thunk$lzycompute(Req.scala:365)
>-at net.liftweb.http.AvoidGAL.thunk(Req.scala:365)
>-at net.liftweb.http.Req$.$anonfun$apply$26(Req.scala:516)
>-at net.liftweb.http.Req.x$46$lzycompute(Req.scala:983)
>-at net.liftweb.http.Req.x$46(Req.scala:979)

The problem here is that we want to know in the UI with a clear error message that the problem is that the file is too big.


Files

clipboard-202409181213-elpzb.png (24 KB) clipboard-202409181213-elpzb.png Clark ANDRIANASOLO, 2024-09-18 12:13
clipboard-202409181214-2g3yw.png (22.7 KB) clipboard-202409181214-2g3yw.png Clark ANDRIANASOLO, 2024-09-18 12:14

Subtasks 1 (0 open1 closed)

Bug #25488: Resource upload with file too big cause network error in firefoxReleasedRaphael GAUTHIERActions
Actions

Also available in: Atom PDF