Uploaded image for project: 'mod-invoice'
  1. mod-invoice
  2. MODINVOICE-125

Spike: Investgate limiting document size on upload

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 81
    • Story Points:
      2
    • Development Team:
      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
      Spike documented on wiki

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                khandramai Viachaslau Khandramai
                Reporter:
                cmcnally Craig McNally
                Tester Assignee:
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases