Dspace maximum file size

319 views
Skip to first unread message

Saul Hernandez O.

unread,
Mar 16, 2021, 9:10:52 PM3/16/21
to DSpace Technical Support
Hello everyone!
I am investigating what is the maximum file size
that dspace accepts  in xmlui

Thank you!

José Geraldo

unread,
Mar 16, 2021, 9:21:34 PM3/16/21
to Saul Hernandez O., DSpace Technical Support

--
All messages to this mailing list should adhere to the Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/3e591cd5-338d-461e-ad06-4aeb97476b1fn%40googlegroups.com.

Saul Hernandez O.

unread,
Mar 16, 2021, 10:09:16 PM3/16/21
to DSpace Technical Support
That size of 512 Mb applies to the entire dspace or only to jspui?

thank you!

Manuele Lorusso

unread,
Mar 17, 2021, 4:13:45 AM3/17/21
to Saul Hernandez O., DSpace Technical Support
Hi,

this setting is only for JSPUI. As far as I know there is no size limit in XMLUI.

Regards,
Manuele

al...@vt.edu

unread,
Mar 17, 2021, 11:39:24 AM3/17/21
to DSpace Technical Support
We have found a limit in XMLUI of ~2 GB. See https://github.com/VTUL/vtechworks/issues/91#issuecomment-156161642.

I have tracked down the problem downloading large files. The web browsers request partial ranges of the files with HTTP headers like this:
Range: bytes=2238906368-
The DSpace XMLUI is based on Cocoon. Cocoon's Byte Range handler has code that tries to parse each number in the byte range as an integer.
In Java, the maximum size of a signed integer is 2,147,483,647, which is less than 2238906368. This throws a NumberFormatException back to DSpace, which returns a 416 HTTP Status code to the browser:
HTTP/1.1 416 Requested Range Not Satisfiable

The browser doesn't get the file.

I don't know yet what the best workaround is - I'm not sure that Cocoon is an active project, and the DSpace community is looking to move away from Cocoon (I've heard) with its next interface system.

Manuele Lorusso

unread,
Mar 17, 2021, 12:21:59 PM3/17/21
to al...@vt.edu, DSpace Technical Support
There is no limit anymore. Since dspace 6.1 it is fixed (https://github.com/DSpace/DSpace/pull/1723).

I can confirm that in our DSpace 6.3 installation big movie files up to 6.5 GB was possible. We will prevent this in the future. Similiar to JSPUI.

Regards,
Manuele
--
All messages to this mailing list should adhere to the Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.

al...@vt.edu

unread,
Mar 17, 2021, 12:34:33 PM3/17/21
to DSpace Technical Support
Manuele,

Thank you for the good news about the fix in version 6.1.

Anne
Reply all
Reply to author
Forward
0 new messages