Uploaded image for project: 'Skin editor'
  1. Skin editor
  2. SKIN-80

Failed to upload and unzip a ZIP file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0
    • 2.0.0
    • None

      In skin editor tool, try to upload a ZIP file with extracting

      Caused by: java.lang.IllegalArgumentException: MALFORMED
      	at java.util.zip.ZipCoder.toString(ZipCoder.java:58)
      	at java.util.zip.ZipFile.getZipEntry(ZipFile.java:567)
      	at java.util.zip.ZipFile.access$900(ZipFile.java:61)
      	at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:525)
      	at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:500)
      	at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:481)
      	at org.ametys.cms.file.FileHelper._unzip(FileHelper.java:235)
      	at org.ametys.cms.file.FileHelper.addOrUpdateFile(FileHelper.java:177)
      	at org.ametys.plugins.skineditor.resources.AddOrUpdateFileAction.act(AddOrUpdateFileAction.java:83)
      	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:125)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
      	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
      	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
      	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
      	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
      	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
      

      The same ZIP file works in resource explorer.

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: