There are 6 updates, 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-ce3a6039-5ef5-4cad-98cd-50bcb73aa8cc XWIKI-21923 Closed

Out of memory exception when trying to upload a large attachment

 
View issue   ยท   Add comment
 

6 updates

 
cid:jira-generated-image-avatar-31ac3c67-5919-480e-a903-3f8c5555c588 Changes by Vincent Massol on 12/Dec/24 13:33
 
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Vincent Massol
Resolution: Won't Fix
Status: Open Closed
Labels: bugfixingday performance
 
 

2 comments

 
cid:jira-generated-image-avatar-31ac3c67-5919-480e-a903-3f8c5555c588 Vincent Massol on 12/Dec/24 13:33
 

Teodor Caras please see https://www.xwiki.org/xwiki/bin/view/FAQ/How%20to%20solve%20the%20%22Unable%20to%20parse%20form%20content%22%20error%20in%20Jetty

 
cid:jira-generated-image-avatar-31ac3c67-5919-480e-a903-3f8c5555c588 Vincent Massol on 12/Dec/24 13:36
 

I'm closing as won't fix for now since the issue is a config one. What could be discussed is the default size of https://www.xwiki.org/xwiki/bin/view/FAQ/How%20to%20solve%20the%20%22Unable%20to%20parse%20form%20content%22%20error%20in%20Jetty

However as mentioned there having a too-high value can be a risk:

<!-- In order to avoid getting a "java.lang.IllegalStateException: Form too large" error when editing large page in
       XWiki we need to tell Jetty to allow for large content since by default it only allows for 20K. We do this by
       passing the "org.eclipse.jetty.server.Request.maxFormContentSize" attribute.
       Note 1: Setting this value too high can leave your server vulnerable to denial of service attacks.
       Note 2: We're setting it here instead of in Jetty's XML configuration files so that the XWiki WAR can be used
       in any Jetty config and work out of the box.
  -->

5120Mb is 640MB, right? That's quite high and I feel it's ok to not support this without a config option. WDYT?