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

Error when trying to unzip a zip file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Awaiting Review
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.7, 19.3, 20.0
    • Fix Version/s: None
    • Component/s: Content
    • Labels:
      None
    • 19 status:
      Please Merge
    • 12 status:
      Please Merge
    • Test Plan:
      Hide
      1. Go to Resources tool
      2. Click Actions -> Uploads files
      3. Upload a zip file (you can use: https://jira.sakaiproject.org/secure/attachment/54003/Pagina.zip)
      4. Click Continue
      5. Actions -> Expand ZIP archive

      It doesn't work and it shown an error on log

      Show
      Go to Resources tool Click Actions -> Uploads files Upload a zip file (you can use:  https://jira.sakaiproject.org/secure/attachment/54003/Pagina.zip ) Click Continue Actions -> Expand ZIP archive It doesn't work and it shown an error on log

      Description

      Error en log

      18-sep-2019 10:12:51.186 ERROR [ajp-nio-8015-exec-5] org.sakaiproject.content.util.ZipContentUtil.extractArchive MALFORMED
      java.lang.IllegalArgumentException: MALFORMED
      at java.util.zip.ZipCoder.toString(ZipCoder.java:58)
      at java.util.zip.ZipFile.getZipEntry(ZipFile.java:583)
      at java.util.zip.ZipFile.access$900(ZipFile.java:60)
      at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:539)
      at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:514)
      at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:495)
      at org.sakaiproject.content.util.ZipContentUtil.extractArchive(ZipContentUtil.java:264)
      at org.sakaiproject.content.impl.BaseContentService.expandZippedResource(BaseContentService.java:14388)
      at org.sakaiproject.content.types.FileUploadType$FileUploadExpandAction.initializeAction(FileUploadType.java:200)
      at org.sakaiproject.content.tool.ResourcesAction.doDispatchAction(ResourcesAction.java:6805)
      at sun.reflect.GeneratedMethodAccessor4488.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.actionDispatch(VelocityPortletPaneledAction.java:740)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.processAction(VelocityPortletPaneledAction.java:552)
      at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:228)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1152)
      at org.sakaiproject.cheftool.ToolServlet.doPost(ToolServlet.java:152)
      at org.sakaiproject.content.tool.ResourcesAction.doPost(ResourcesAction.java:10520)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                maintenanceteam Core Team
                Reporter:
                jesusmmp Jesus Maria Mendez
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Git Integration