When using the Jenkins Search functionality to retrieve branches containing a `/`, the results are correct:
But the links are broken:
In this example, the search found the following branches:
testSharedLibsMultibranch-3 feature%2Ffeature1
testSharedLibsMultibranch-3 feature%2Ffeature2
testSharedLibsMultibranch-3 feature%2Ffeature3
testSharedLibsMultibranch-3 feature%2Ffeature4
testSharedLibsMultibranch-4 feature%2Ffeature1
testSharedLibsMultibranch-4 feature%2Ffeature2
And the links are:
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%2Ffeature1
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%2Ffeature2
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%2Ffeature3
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%2Ffeature4
$JENKINS_URL/search/?q=testSharedLibsMultibranch-4%20feature%2Ffeature1
$JENKINS_URL/search/?q=testSharedLibsMultibranch-4%20feature%2Ffeature2
It fails because of the encoding of the `/`. Using double encoding `%252F` make this work:
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%252Ffeature1
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%252Ffeature2
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%252Ffeature3
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%252Ffeature4
$JENKINS_URL/search/?q=testSharedLibsMultibranch-4%20feature%252Ffeature1
$JENKINS_URL/search/?q=testSharedLibsMultibranch-4%20feature%252Ffeature2
Note: It is not possible to create a job containing `%` in the name. This is enforced by Pipeline Multibranch.
Originally reported by
allan_burdajewicz, imported from: Search of multibranch branch jobs is broken if the branch contains a slash
- assignee:
stephenconnolly
- status: Closed
- priority: Minor
- component(s): core
- label(s): 2.46.2-fixed, multibranch, search, slash, url-encoding
- resolution: Fixed
- resolved: 2017-04-12T19:56:53+00:00
- votes: 0
- watchers: 3
- imported: 2025-11-24
Raw content of original issue
When using the Jenkins Search functionality to retrieve branches containing a `/`, the results are correct:
But the links are broken:
In this example, the search found the following branches:
testSharedLibsMultibranch-3 feature%2Ffeature1
testSharedLibsMultibranch-3 feature%2Ffeature2
testSharedLibsMultibranch-3 feature%2Ffeature3
testSharedLibsMultibranch-3 feature%2Ffeature4
testSharedLibsMultibranch-4 feature%2Ffeature1
testSharedLibsMultibranch-4 feature%2Ffeature2
And the links are:
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%2Ffeature1
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%2Ffeature2
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%2Ffeature3
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%2Ffeature4
$JENKINS_URL/search/?q=testSharedLibsMultibranch-4%20feature%2Ffeature1
$JENKINS_URL/search/?q=testSharedLibsMultibranch-4%20feature%2Ffeature2
It fails because of the encoding of the `/`. Using double encoding `%252F` make this work:
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%252Ffeature1
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%252Ffeature2
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%252Ffeature3
$JENKINS_URL/search/?q=testSharedLibsMultibranch-3%20feature%252Ffeature4
$JENKINS_URL/search/?q=testSharedLibsMultibranch-4%20feature%252Ffeature1
$JENKINS_URL/search/?q=testSharedLibsMultibranch-4%20feature%252Ffeature2
Note: It is not possible to create a job containing `%` in the name. This is enforced by Pipeline Multibranch.
environment
Jenkins 2.32<br/>
workflow-multibranch: 2.9.2
2 attachments
When using the Jenkins Search functionality to retrieve branches containing a `/`, the results are correct:
But the links are broken:
In this example, the search found the following branches:
And the links are:
It fails because of the encoding of the `/`. Using double encoding `%252F` make this work:
Note: It is not possible to create a job containing `%` in the name. This is enforced by Pipeline Multibranch.
Originally reported by
allan_burdajewicz, imported from: Search of multibranch branch jobs is broken if the branch contains a slash
Raw content of original issue
environment
2 attachments