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

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

    Details

    • Similar Issues:
    • Epic Link:

      Description

      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
      

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            michaelneale Michael Neale added a comment -

            This may be woth checking as it may be solved soon

            Show
            michaelneale Michael Neale added a comment - This may be woth checking as it may be solved soon
            Hide
            jamesdumay James Dumay added a comment -

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

            Show
            jamesdumay James Dumay added a comment - Mic says he hasn't seen this in a while and we cannot reproduce.
            Hide
            michaelneale 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 Thorsten Scherler for the very gnarly encoding folder names and such to catch messy things like this. 

            Show
            michaelneale 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 Thorsten Scherler for the very gnarly encoding folder names and such to catch messy things like this. 
            Hide
            tscherler Thorsten Scherler added a comment -

            Michael Neale thanks for the flowers and kudo to Vivek Pandey for fixing it

            Show
            tscherler Thorsten Scherler added a comment - Michael Neale thanks for the flowers and kudo to Vivek Pandey for fixing it

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: