Upgrade Task 13 Should Ignore Invalid JIRA filter

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 6.4.2
    • Affects Version/s: 6.3.11
    • Component/s: None
    • 6.03

      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

            Assignee:
            Unassigned
            Reporter:
            vkharisma
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: