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

Encoding failure: multibranch fails indexing on ATH for strange pipeline names

      On a linux system do not start your xserver (e.g. init 4) then start the AT in dev mode,

      ./run.sh -a=../blueocean-plugin/blueocean -d
      

      connect to the url shown to you with a browser.

      Start the folder.js test via nightwatch

      nr nightwatch src/test/js/edgeCases/folder.js
      

      you will find SERVER/blue/organizations/jenkins/anotherFolder%2F三百%2Fñba%2F七%2FSohn/detail/master/1/pipeline has failed with following error. If you follow the above steps on a xserver box you will not get this error.

      Branch indexing
      ln builds/lastSuccessfulBuild /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/jenkins655371267542447412home/jobs/anotherFolder/jobs/??/jobs/?ba/jobs/?/jobs/Sohn/branches/master/lastSuccessful failed
      java.io.IOException: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/jenkins655371267542447412home/jobs/anotherFolder/jobs/??/jobs/?ba/jobs/?/jobs/Sohn/branches/master/lastSuccessful
      	at hudson.Util.createSymlinkJava7(Util.java:1407)
      	at hudson.Util.createSymlink(Util.java:1304)
      	at hudson.model.Run.createSymlink(Run.java:1843)
      	at hudson.model.Run.updateSymlinks(Run.java:1824)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:200)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/jenkins655371267542447412home/jobs/anotherFolder/jobs/??/jobs/?ba/jobs/?/jobs/Sohn/branches/master/lastSuccessful
      	at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
      	at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)
      	at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
      	at java.io.File.toPath(File.java:2234)
      	at hudson.Util.createSymlinkJava7(Util.java:1376)
      	... 6 more
      ln builds/lastStableBuild /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/jenkins655371267542447412home/jobs/anotherFolder/jobs/??/jobs/?ba/jobs/?/jobs/Sohn/branches/master/lastStable failed
      java.io.IOException: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/jenkins655371267542447412home/jobs/anotherFolder/jobs/??/jobs/?ba/jobs/?/jobs/Sohn/branches/master/lastStable
      	at hudson.Util.createSymlinkJava7(Util.java:1407)
      	at hudson.Util.createSymlink(Util.java:1304)
      	at hudson.model.Run.createSymlink(Run.java:1843)
      	at hudson.model.Run.updateSymlinks(Run.java:1825)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:200)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/jenkins655371267542447412home/jobs/anotherFolder/jobs/??/jobs/?ba/jobs/?/jobs/Sohn/branches/master/lastStable
      	at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
      	at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)
      	at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
      	at java.io.File.toPath(File.java:2234)
      	at hudson.Util.createSymlinkJava7(Util.java:1376)
      	... 6 more
      Setting origin to /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/test-project-folder
      Fetching origin...
      Cloning the remote Git repository
      Cloning repository /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/test-project-folder
       > git init /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/jenkins655371267542447412home/workspace/anotherFolder/??/?ba/?/Sohn/master@script # timeout=10
      Fetching upstream changes from /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/test-project-folder
       > git --version # timeout=10
       > git -c core.askpass=true fetch --tags --progress /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/test-project-folder +refs/heads/*:refs/remotes/origin/*
       > git config remote.origin.url /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/test-project-folder # timeout=10
       > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
       > git config remote.origin.url /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/test-project-folder # timeout=10
      Fetching upstream changes from /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/test-project-folder
       > git -c core.askpass=true fetch --tags --progress /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/test-project-folder +refs/heads/*:refs/remotes/origin/*
      Checking out Revision c23c6d7290e36515def362fc4a1913eb06f3db15 (master)
       > git config core.sparsecheckout # timeout=10
       > git checkout -f c23c6d7290e36515def362fc4a1913eb06f3db15
      First time build. Skipping changelog.
      [Pipeline] End of Pipeline
      java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/thorsten/opt/src/cloudbees/blueocean-acceptance-test/target/jenkins655371267542447412home/jobs/anotherFolder/jobs/??/jobs/?ba/jobs/?/jobs/Sohn/branches/master/builds/1/atomic7465740327809827172.tmp
      	at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
      	at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)
      	at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
      	at java.io.File.toPath(File.java:2234)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.saveProgram(CpsThreadGroup.java:433)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.saveProgram(CpsThreadGroup.java:408)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:356)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:78)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:236)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:224)
      	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Finished: FAILURE
      

          [JENKINS-40441] Encoding failure: multibranch fails indexing on ATH for strange pipeline names

          michaelneale it seems a regression in some plugin, since that case has worked before. Meaning there maybe a ticket in core jenkins or plugins about that problem. If not we may want to ask around whether someone has seen such a thing. It is not hard to reproduce.

          Anyway I wonder whether we should try dogfood and see whether there we can reproduce it (I guess we not running xserver for it).

          Thorsten Scherler added a comment - michaelneale it seems a regression in some plugin, since that case has worked before. Meaning there maybe a ticket in core jenkins or plugins about that problem. If not we may want to ask around whether someone has seen such a thing. It is not hard to reproduce. Anyway I wonder whether we should try dogfood and see whether there we can reproduce it (I guess we not running xserver for it).

          Michael Neale added a comment -

          tscherler but this does fail on dogfood when running the ATH - but I guess you mean outside of that?

          imght be worth asking about that stack trace on the jenkins-dev mailing list... it probably has a common solution.

          Michael Neale added a comment - tscherler but this does fail on dogfood when running the ATH - but I guess you mean outside of that? imght be worth asking about that stack trace on the jenkins-dev mailing list... it probably has a common solution.

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/test/java/integration/BrandingTest.java
          http://jenkins-ci.org/commit/branch-api-plugin/6219ef9ef106001259c18387cc7c213c4addf31d
          Log:
          Check that JENKINS-40441 is not our problem

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/integration/BrandingTest.java http://jenkins-ci.org/commit/branch-api-plugin/6219ef9ef106001259c18387cc7c213c4addf31d Log: Check that JENKINS-40441 is not our problem

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/test/java/integration/BrandingTest.java
          http://jenkins-ci.org/commit/branch-api-plugin/26505ade48353f6ebffdba3d36af04a569096e55
          Log:
          Check that JENKINS-40441 is not our problem

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/integration/BrandingTest.java http://jenkins-ci.org/commit/branch-api-plugin/26505ade48353f6ebffdba3d36af04a569096e55 Log: Check that JENKINS-40441 is not our problem

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/test/java/integration/BrandingTest.java
          http://jenkins-ci.org/commit/branch-api-plugin/3dde56528e29c11983f7f3cab05cc988331953c7
          Log:
          Check that JENKINS-40441 is not our problem

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/integration/BrandingTest.java http://jenkins-ci.org/commit/branch-api-plugin/3dde56528e29c11983f7f3cab05cc988331953c7 Log: Check that JENKINS-40441 is not our problem

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/test/java/integration/BrandingTest.java
          http://jenkins-ci.org/commit/branch-api-plugin/151d07691ce3fd73235ec7b21672c7ade30533de
          Log:
          Check that JENKINS-40441 is not our problem

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/integration/BrandingTest.java http://jenkins-ci.org/commit/branch-api-plugin/151d07691ce3fd73235ec7b21672c7ade30533de Log: Check that JENKINS-40441 is not our problem

          Michael Neale added a comment -

          This may be woth checking as it may be solved soon

          Michael Neale added a comment - This may be woth checking as it may be solved soon

          James Dumay added a comment -

          Mic says he hasn't seen this in a while and we cannot reproduce.

          James Dumay added a comment - Mic says he hasn't seen this in a while and we cannot reproduce.

          Michael Neale added a comment -

          Blast from the past (for those that care) but Vivek has reproduced this with JDK8 and a newer LTS - we suspected it was this. 

          So hopefully will know what this really is. I tip my hat to tscherler for the very gnarly encoding folder names and such to catch messy things like this. 

          Michael Neale added a comment - Blast from the past (for those that care) but Vivek has reproduced this with JDK8 and a newer LTS - we suspected it was this.  So hopefully will know what this really is. I tip my hat to tscherler for the very gnarly encoding folder names and such to catch messy things like this. 

          michaelneale thanks for the flowers and kudo to vivek for fixing it

          Thorsten Scherler added a comment - michaelneale thanks for the flowers and kudo to vivek for fixing it

            tfennelly Tom FENNELLY
            tscherler Thorsten Scherler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: