We have a branch structure with information encoded similar to this:
feature/v1.abc12345.67890
We would like to use the Bitbucket REST API on our server to find this branch based on the 5 digit number.
Searching for 12345 does not work:
https://bitbucketServer.company.com/rest/api/1.0/projects/wfc/repos/testRepo/branches?filterText=12345
Searching for 67890 does work:
https://bitbucketServer.company.com/rest/api/1.0/projects/wfc/repos/testRepo/branches?filterText=67890
Adding context back to preceding period (abc12345) does work:
https://bitbucketServer.company.com/rest/api/1.0/projects/wfc/repos/testRepo/branches?filterText=abc12345
Other observations:
It seems like the filter text parses on special characters like: / . -
Then it will incrementally search from left to right.
Here are some more examples that will find that branch:
Here are some more examples that will not find that branch
Is this a bug?
If it is a bug, can it be fixed?