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

Colon : in custom field search causes searching of wrong field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 4.0
    • 3.13.1, 3.13.2
    • Indexing
    • JIRA Standalone, JDK 1.6.0_07, Debian Etch

    Description

      Steps to reproduce:
      1) Perform a new search on http://jira.atlassian.com/secure/IssueNavigator.jspa?mode=show&createNew=true
      2) Under project, select "A Test Project"
      3) Click the "Click here to refresh the search menu" link.
      4) In the Custom Fields section, find the "Random text" field and enter the following parameter: priority:1
      5) Click the "View >>" button to perform the search.

      Expected results:
      Search result contains bugs where the "Random text" field contains the word "priority" or the number "1"

      Actual results:
      We just searched on the Priority field! Search result contains priority 1 bugs.

      A more common scenario is a user searching for a URL. They enter http://www.example.com/ into a custom field searcher but get no matches because JIRA is now attempting to search a field called "http".

      This bug was fixed for the Summary/Description/Comments/Environment text searcher (which uses MultipleFieldSingleValueLuceneParameter) in JRA-5394. But this fix does not work for custom text fields (which use SingleFieldSingleValueLuceneParameter).

      Attachments

        Issue Links

          Activity

            People

              bbain bain
              2c03dbcde8a8 Thomas Pike
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: