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

ZIP doesn't allow special characters in filenames

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • java runtime version: 11.0.18+10-post-Ubuntu-0ubuntu122.04
      Jenkins version: 2.387.1
      plugin version: 2.15.1
      Agent OS: Windows 10

      unzipping a file containing special characters (á,ä,â...) causes the process to throw an exception:

       

      stack trace:
      hudson.remoting.Channel$CallSiteStackTrace: Remote call to BuildAgent1Windows
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
      at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      at hudson.remoting.Channel.call(Channel.java:1000)
      at hudson.FilePath.act(FilePath.java:1192)
      at hudson.FilePath.act(FilePath.java:1181)
      at org.jenkinsci.plugins.pipeline.utility.steps.DecompressStepExecution.run(DecompressStepExecution.java:78)
      at org.jenkinsci.plugins.pipeline.utility.steps.zip.UnZipStepExecution.run(UnZipStepExecution.java:78)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:829)
      java.util.zip.ZipException: invalid CEN header (bad entry name)
      at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1598)
      at java.base/java.util.zip.ZipFile$Source.checkAndAddEntry(ZipFile.java:1209)
      at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1537)
      at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1315)
      at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1277)
      at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:709)
      at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:243)
      at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:296)
      at org.jenkinsci.plugins.pipeline.utility.steps.zip.UnZipStepExecution$UnZipFileCallable.invoke(UnZipStepExecution.java:107)
      at org.jenkinsci.plugins.pipeline.utility.steps.zip.UnZipStepExecution$UnZipFileCallable.invoke(UnZipStepExecution.java:84)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3578)
      at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      at hudson.remoting.Request$2.run(Request.java:377)
      at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:125)
      at java.base/java.lang.Thread.run(Thread.java:833)

       

       

       

      i have tried setting the charset to both: 
      charset: "UTF-8"
      charset: "UTF-16"

            rsandell rsandell
            alejandro_soler_firescalestudios Alejandro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: