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

Zip file only can extract once in content tool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.9.x, 10.0
    • Fix Version/s: 10.6
    • Component/s: Kernel
    • Labels:
      None
    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1220

      Description

      Test plan:
      1. Config content.zip.enabled property and other related properties to allow extract zip file in content tool.
      2. Upload a zip file (foo.zip for example) to content tool.
      3. Expand the zip file. A folder with name 'foo' is created to expand files.
      4. Delete the whole 'foo' folder.
      5. Expand the zip file again, and no folder will be created. And an InUseException is thrown.

      Why?
      In the function BaseContentService.expandZippedResource, a the resource related to the zip file is not commited in the end. This stop the zip to be extracted again.

      Solution
      Commit the resource in the end of the function.

      Patch is attached via 2.9.x

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  aaronz Aaron Zeckoski (Inactive)
                  Reporter:
                  gaojun Gao Jun
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration