Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45658

Unzip step fails when accented files exists.

XMLWordPrintable

      When using unzip step from Pipeline utility steps, the unzip action failed everytime when files are accented (e.g : méthode instead of method).

      Stacktrace are not really helpful :

      java.lang.IllegalArgumentException: MALFORMED
              at java.util.zip.ZipCoder.toString(ZipCoder.java:58)
      	at java.util.zip.ZipFile.getZipEntry(ZipFile.java:566)
      	at java.util.zip.ZipFile.access$900(ZipFile.java:60)
      	at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:524)
              [...]

      No display is given on which file caused the exception and I have spend 3 hours to finally found the reason in this fatty zip that I was trying to unzip (using 7z or WinRar was not helpful because they are not disturb by accented names).

       

       Maybe unzip can handle accented names (Probably an option exists in Java Unzip library) or at least, it can display the file that will be extract before extract it (to find easily which one is causing the issue).

       

      Regards.

            rsandell rsandell
            thain Alexandre Quettier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: