Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-10537

Upgrade Task 13 Should Ignore Invalid JIRA filter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 6.4.2
    • 6.3.11
    • None

    Description

      When there is an invalid search filter in JIRA, the upgradeTask 13 will got stuck upon upgrading/installing JIRA Agile. The following error will be thrown in atlassian-jira.log:

      2014-03-07 16:06:34,368 localhost-startStop-1 ERROR      [sal.core.upgrade.PluginUpgrader] Upgrade failed: com.atlassian.jira.jql.parser.JqlParseException: com.atlassian.jira.jql.parser.antlr.RuntimeRecognitionException: NoViableAltException(8@[467:1: operator returns [Operator operator] : ( EQUALS | NOT_EQUALS | LIKE | NOT_LIKE | LT | GT | LTEQ | GTEQ | IN | IS NOT | IS | NOT IN | WAS | WAS NOT | WAS IN | WAS NOT IN | CHANGED );])
      com.atlassian.jira.exception.DataAccessException: com.atlassian.jira.jql.parser.JqlParseException: com.atlassian.jira.jql.parser.antlr.RuntimeRecognitionException: NoViableAltException(8@[467:1: operator returns [Operator operator] : ( EQUALS | NOT_EQUALS | LIKE | NOT_LIKE | LT | GT | LTEQ | GTEQ | IN | IS NOT | IS | NOT IN | WAS | WAS NOT | WAS IN | WAS NOT IN | CHANGED );])
      	at com.atlassian.jira.issue.search.OfBizSearchRequestStore.getSearchQueryFromGv(OfBizSearchRequestStore.java:471)
      	at com.atlassian.jira.issue.search.OfBizSearchRequestStore.convertGVToRequest(OfBizSearchRequestStore.java:445)
      	at com.atlassian.jira.issue.search.OfBizSearchRequestStore.access$000(OfBizSearchRequestStore.java:57)
      	....
      

      There is no easy way to find the invalid filter in JIRA. In this case, we have two options

      1. The upgrade task should not care with the invalid JIRA filter
      2. Improve the error logging to point out the offending filter

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vkharisma vkharisma (Inactive)
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: