Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-31297

Files are removed when you update it if quota is exceeded

    XMLWordPrintable

    Details

    • 11 status:
      Please Merge
    • Test Plan:
      Hide

      1. Go to resources in a site with more than 100% of quota.
      2. In a file stored in resources, go to Actions -> Edit details.
      3. Click on update. (Even if you don't change anything)
      4. You get an error and the file is removed.

      Show
      1. Go to resources in a site with more than 100% of quota. 2. In a file stored in resources, go to Actions -> Edit details. 3. Click on update. (Even if you don't change anything) 4. You get an error and the file is removed.

      Description

      When a site is using more than 100% of quota (very rarely), if you try to edit details of a file previously uploaded, it fails and the file go to trash.

      In tomcat log you get this trace if you try to change the access to public:

      02-Jun-2016 04:04:41.002 INFO [http-apr-19888-exec-10] org.sakaiproject.content.impl.DbContentService.removeResource Removing resource (/group/1e1ca191-37dc-4757-94e0-9da813ee6d1b/b.png) content: /var/sakai-assets/trunk-oracle/assets
      02-Jun-2016 04:04:41.165 WARN [http-apr-19888-exec-10] org.sakaiproject.content.tool.ResourcesAction.doReviseProperties OverQuotaException 
      org.sakaiproject.exception.OverQuotaException id: /content/group/1e1ca191-37dc-4757-94e0-9da813ee6d1b/b.png ref: /content/group/1e1ca191-37dc-4757-94e0-9da813ee6d1b/b.png
      	at org.sakaiproject.content.impl.BaseContentService.commitResource(BaseContentService.java:6027)
      	at org.sakaiproject.content.cover.ContentHostingService.commitResource(ContentHostingService.java:539)
      	at org.sakaiproject.content.tool.ResourcesAction.doReviseProperties(ResourcesAction.java:7632)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	...
      

      This cannot reproduce with folders.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  juanarcadio Juan Arcadio Martinez Carceles
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Git Integration