Project

General

Profile

Bug #25155

Updated by François ARMAND 3 months ago

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 :  
 <pre> 
 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) 
 

 </pre> 

 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.

Back