Resources: Over quota errors during compression

Description

In cases where a user is attempting to compress content in Resources where the addition of the resulting zip file would exceed the quota, the user is currently presented with the following generic error message:

An error has occurred while compressing to zip archive

Meanwhile, logged to catalina.out an error message with an OverQuotaException stack trace is logged, unknown to the user. 

The generic message may incline the user to waste time by trying again. Instead, a more helpful message to present to the user when an OverQuotaException occurs would be the message defined by the “overquota” property in content.properties:

Adding this resource would place this account over quota. To add this resource, some resources may need to be deleted.

FYI: This particular case was partly the impetus in discovering the bug described in .

Attachments

1

Activity

Automation for Jira 2 days ago

A pull request has been created, "SAK-51373 Content improved message when zip is over the site quota", you can see it at https://github.com/sakaiproject/sakai/pull/13621

Earle Nietzel 2 days ago

Here is a screenshot when attempting to zip a folder that would put the site over it’s quota limit

I modified the text to be a little less generic:
Adding the zip file would exceed the quota allocated for this site. To add the zip file, some resources may need to be deleted.

Details

Priority

25 Status

Please Merge

23 Status

Please Merge

22 Status

Please Merge

Components

Assignee

Reporter

Created 4 days ago
Updated 2 days ago