Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-3651

Ambiguous method error when using expression JQL function anonymously

    Details

    • Type: Bug
    • Status: Done
    • Priority: Trivial
    • Resolution: Done
    • Affects Version/s: 5.5.9.1-jira8
    • Fix Version/s: 5.6.1
    • Component/s: JQL Functions
    • Labels:
      None
    • Critical Points:
      0

      Description

      N.B. This bug is present in the Jira 8 version only.

      To reproduce:

      • Grant the Browse Projects permission to the group Anyone so that anon access to issueFunction is allowed.
      • Ensure you are logged out of Jira.
      • Go to the issue navigator and run a valid JQL query using the expression function, e.g:
        issueFunction in expression("", "created < updated+ 15*d")
        

      Expected result: The query runs without error and returns whichever matching issues are anonymously viewable (for the example query above, this should be every anonymously-viewable issue in the instance).

      Actual result: The query fails with the following error message:

      Ambiguous method overloading for method com.onresolve.jira.groovy.jql.NumericCompare#getClauseInfosForVars. Cannot resolve which method to invoke for [class java.util.ArrayList, null] due to overlapping prototypes between: [interface java.util.List, interface com.atlassian.jira.jql.query.QueryCreationContext] [interface java.util.List, interface com.atlassian.jira.user.ApplicationUser]
      

        Attachments

          Activity

            People

            Assignee:
            jchoules Joanna Choules
            Reporter:
            jchoules Joanna Choules
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: