-
-
Notifications
You must be signed in to change notification settings - Fork 502
Limit zip export resources size and add option to exclude attachments #9130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Limit zip export resources size and add option to exclude attachments #9130
Conversation
…chments option when limit is exceeded
|
Should zip export and export as zip without the attachments generate different filenames? |
|
We need a way of knowing if the zip doesn't have attachments because it would be too big or the attachment export is disabled, or because the metadata actually don't have any attachments. Using a different name could be a fix for that. |
Maybe something like There are really only two cases where there are no attachments
|
|
I haven't checked all the code in PR yet, but I see that |
|
@juanluisrp Sorry for the confusion. The description was updated but the screenshot above and the documentation was missed. No the attachments will not be excluded if they exceed the limit. An exception is thrown instead. |


Currently there is no limit on the size of zip exports.
Consider a catalogue of 1000 records each with a 1GB attachment/resource. If a user selects all the records and attempts to export as zip, the system will try to create a 1000GB zip file which will cause performance issues.
This PR aims to solve this issue by implementing a size limit.
An option was added to the system settings:
Additionally the ui was updated to disable the zip export and a new option to export as zip without the attachments is added:
Checklist
mainbranch, backports managed with labelREADME.mdfilespom.xmldependency management. Update build documentation with intended library use and library tutorials or documentation