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

addFreeTextCondition() assumes environment field is visible to user performing the query

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 4.0.2
    • 4.0
    • None

    Description

      com.atlassian.jira.rpc.soap.service.SearchServiceImpl.addFreeTextCondition() line 223 adds the environment as a field to search. This assumes that the user performing the query has this field visible. The following error occurs if that is not the case:

      com.atlassian.jira.rpc.exception.RemoteValidationException: Query validation failed: Field 'environment' does not exist.

      The query should still work if the environment field is not visible to the user.

      This is used by:
      getIssuesFromTextSearch()
      getIssuesFromTextSearchWithProject()

      can we do the equivalent of a text ~ " " search?

      Attachments

        Activity

          People

            pleschev Peter Leschev
            pleschev Peter Leschev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: