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

Search hits for multiple camelCase or UpperCamelCase terms may be displayed in separate result fragments even though they're on the same line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.7.1, 7.17.5, 7.21.0
    • Search

    Description

      Issue Summary

      When performing a search for multiple camelCase or UpperCamelCase terms, the search hits may be displayed in separate "fragments" even though they're on the same line.

      Because of this, the lines containing the hits appear to be cut off or truncated.

      Example

      For this sample, a source file contains several hits for the terms "ThrottlingAnalyticsPublisher" and "analyticsPublisher":

      The following excerpt from the file shows the strings "ThrottlingAnalyticsPublisher" and "analyticsPublisher" on the same line (line 618):

      A search for: ThrottlingAnalyticsPublisher analyticsPublisher returns the hits in 3 fragments:

      The hits for the search terms on line 618 were split into fragments 2 and 3, instead of showing them on the same line.

      Steps to Reproduce

      1. Commit a file containing multiple instances of camelCase or UpperCamelCase terms
      2. search for more than one camelCase/UpperCamelCase terms

      Expected Results

      Search results on the same line are shown together - on the same line, in the same result fragment.

      Actual Results

      There are cases where the camelCase/UpperCamelCase terms are split and shown in separate result fragments.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Additional notes

      Attachments

        1. sample-lines.png
          sample-lines.png
          42 kB
        2. sample-search-hits.png
          sample-search-hits.png
          188 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jmariano@atlassian.com JP Mariano
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: