Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
-
Firebird Sprint 86, Firebird Sprint 87, Firebird Sprint 88
-
1
-
Thunderjet
Description
Overview
UINV-108 reports that large file uploads crash the browser. I verified that this is also an issue when using the API directly. When I tried this against folio-testing, mod-invoice became unusable and started complaining about insufficient heap space. A module restart was required.
An easy solution to this is to define and enforce a size limit for invoice documents. The arbitrary limit of 20MB has been chosen for now.
When a user attempts to upload a document larger than the limit, return an appropriate error message/code.
It's ok to hardcode this limit for now.
See https://issues.folio.org/browse/UINV-109 for additional details.
Acceptance Criteria
- A document size limit is enforced
- Appropriate error message/code is returned when the limit is exceeded
- A note is added to the RAML and/or README indicating this limit.
TestRail: Results
Attachments
Issue Links
- defines
-
UXPROD-2297 Part 2 - Export Library Accounting vouchers (Create Batch and Upload to ftp)
-
- Closed
-
- has to be done after
-
MODINVOICE-125 Spike: Investgate limiting document size on upload
-
- Closed
-
- has to be finished together with
-
UINV-146 Support breaking changes on the back-end for Limit document size feature
-
- Closed
-
- is blocked by
-
MODINVOICE-142 Spike: Investigate limiting document size on upload for application/octet-stream POST
-
- Closed
-
- relates to
-
FOLIO-3317 Spike - investigate possible file upload vulnerability
-
- Open
-
-
MODINVOSTO-64 SPIKE: Saving documents with large size into DB
-
- Closed
-
-
UINV-108 Browser crashers when a large file is uploaded
-
- Closed
-
-
UINV-109 Limit document size
-
- Closed
-