Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4469

Only small files can be uploaded via new REST API (v7)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 7.0
    • Fix Version/s: 7.0
    • Component/s: REST API v7
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Not Required

      Description

      In my development environment, whenever I attempt to upload a file that is >1MB in size, the REST API (v7) returns a `500` response with this body:

      <!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> An Exception has occured</p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><hr class="line" /><h3>Apache Tomcat/8.5.53</h3></body></html>

      No errors are logged (in Tomcat or DSpace logs), and no further information is provided in the response.

      Files which are <1MB upload successfully. It only seems to affect files that are at least 1MB in size.

      I've tested this via both the Submission UI and via the (new) Item Bitstream Edit PR (https://github.com/DSpace/dspace-angular/pull/577). Both show the same behavior.

      It's possible this is my development environment (I'm using our Docker setup for DSpace 7), but I'm logging this in case others are able to reproduce this issue.

        Attachments

          Activity

            People

            Assignee:
            benbosman Ben Bosman
            Reporter:
            tdonohue Tim Donohue
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: