Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-14168

Search matches too much: Using special characters and = in text field such as description

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • 6.4
    • 3.9, 3.11
    • Indexing
    • Tested on a standalone Jira on Windows XP in both 3.9 and 3.11

    Description

      SETUP
      1. Create an issue with a description "foo:bar"
      2. Create a second issue with a description "foo-bar"
      3. Create a third issue with a description "foo=bar"

      TEST
      3. Do a search for the first issue with the search term "foo\:bar" (no matter if it is with or without the quote) in the text search query field.
      4. Do a search for the second issue with the search term "foo-bar"
      5. Do a search for the third issue with the search "term "foo=bar"

      VALIDATION
      6. Notice how the search terms change for the given query under Text Search Query in both 3 and 4 to "foo\ bar"
      7. Notice how the search terms does NOT change in 5. The query under Text Search Query stays the same, as "foo=bar"
      8. Notice how the result for 3, 4 and 5 find all 3 issues even if in the case 3 only the first issue should match, in case 4 only the second issue should match and in 5 only the third issue should match
      9. Notice that the same happens for a query without escaping the special characters ":" and "-".
      10. Notice that the same happens for a query when escaping the non-special character "="

      I noticed this when using a customfield that uses the text search. The "=" character being the problem. It matches my delimiter I used (":") even if it should not. Also the customfield query with "\:" or "-" does NOT change to "\ " but stays the same when performing the search.

      SUGGESTED FIXES
      1. Do not change the given query ("\:" to "\ ")n in the text search
      2. Do not match any special character and "=" with the query "\ ", "-" and "\:" (possibly also other special characters)
      3. Do not match special characters with "="

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              790cb4f9dbbe Ivar Ekman
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: