Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-14265

search can't find matches when searched for exact matches for keywords in condition where there’s a string in camelCase in between hyphens

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 8.9.0
    • Search

    Description

      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

      1. Commit the file with 2 keywords similar to apple-MangoApple-grape apple-mango-grapeFruit which have camelcase separated by hyphens
      2.  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

      Attachments

        1. NonWorking_Search.png
          NonWorking_Search.png
          137 kB
        2. Screen Shot 2023-07-18 at 6.19.51 PM.png
          Screen Shot 2023-07-18 at 6.19.51 PM.png
          30 kB
        3. Working_Search.png
          Working_Search.png
          94 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              3833708f677e Prashant Mulya
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: