Details
-
Bug
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
-
ERM Sprint 67, ERM Sprint 77
-
Bienenvolk
Description
This occurs in mod-agreements, but will likely affect mod-licenses as well.
Increasing the file upload limit and attempting to upload a file larger than 10MB returns the following failure:
{"error":500,"message":"java.lang.OutOfMemoryError: Java heap space","stackTrace":["java.util.Arrays.copyOf(Arrays.java:3236)","java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)","java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)","java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)","org.olf.general.FileUploadController.$mt__postFileUploadRaw(FileUploadController.groovy:30)"]}
This is more than likely due to the current database schema that causes the entire record to be loaded into memory when retrieved. In order to work around this, we will need to implement a schema that allows for a streaming retrieval.
TestRail: Results
Attachments
Issue Links
- has to be done before
-
ERM-540 File uploader: Display general error message on file upload fail
-
- Closed
-