-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
8.9.0
-
1
-
Severity 3 - Minor
-
3
-
Issue Summary
search can't find matches when searched for exact matches for keywords in condition where there’s a string in camelCase in between hyphens
Example:
in 2 keywords example below
- Exact Match for keyword "IAM-Approval-getOnboardingApprovalListForm" - Produces result
- Exact Match for the keyword “IAM-Approval-getOnboardingNon-Attributable" - Produces no Result
Ideally considering the restriction 1 in KB Bitbucket search syntax. Both search results should fail however in this case one works and the other fails
Testing;
Testing further, we can confirm that the search fails in the following condition
- where there’s a string in camelCase in between hyphens
Test Example:
File on the repository contains the following 2 keywords
- apple-MangoApple-grape
- apple-mango-grapeFruit
Searching the following 2 Keywords in Bitbucket
"apple-mango-grapeFruit": This can be searched because camelCase is at the end
"apple-MangoApple-grape": This can't be searched because the camelCase string is in the middle
Steps to Reproduce
- Commit the file with 2 keywords similar to apple-MangoApple-grape apple-mango-grapeFruit which have camelcase separated by hyphens
- Perform a search for both keywords and verify that the result is consistent for both the searches
Expected Results
- Result should be consistent for both keywords
- Considering Hyphens are ignored as documented in Bitbucket search syntax. Search should fail for both searches
- If the search work then the search should be consistent for Both searches that include camelcase's separated by hyphens
Actual Results
Search is not consistent and Works for One String and doesn't work for other
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- is related to
-
BSERV-8782 Punctuation aware code search
- Gathering Interest
- mentioned in
-
Page Loading...