amuniz / bitbucket-branch-source-plugin

5 stars 2 forks source link

Branch Indexing / Folder Computation fails if branch name contains german umlauts like ü, ö or ä #4

Closed Mischi closed 6 years ago

Mischi commented 7 years ago

Branch Indexing / Folder Computation fails if a branch with german umlauts (ö, ä, ü) is detected. In case of Folder Computions, the Repository is removed from the detected repository because of the exception which is kind of bad Error message:

Connecting to http://git.XXX using XXX/****** (Zugriff auf GIT)
Looking up XxX/x for branches
Checking branch develop from XxX/x
Met criteria
No changes detected in develop (still at 96307b5993edcb02f4ff4592cb982fcc950ef147)
Checking branch ü from XxX/x
FATAL: Failed to recompute children of XwX » x
java.lang.IllegalArgumentException: Invalid uri 'http://git.XXX/rest/api/1.0/projects/XxX/repos/x/browse/Jenkinsfile?at=ü': Invalid query
    at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
    at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
    at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequestStatus(BitbucketServerAPIClient.java:428)
    at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.checkPathExists(BitbucketServerAPIClient.java:246)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource$1.exists(BitbucketSCMSource.java:360)
    at org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactory$1.isHead(WorkflowBranchProjectFactory.java:51)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.observe(BitbucketSCMSource.java:363)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieveBranches(BitbucketSCMSource.java:326)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:279)
    at jenkins.scm.api.SCMSource.fetch(SCMSource.java:148)
    at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
    at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
    at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE