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

AddedAfterSprintStart and RemovedAfterSprintStart do not work with anonymous access

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.5.7
    • Component/s: JQL Functions
    • Labels:
      None
    • Sprint:
      Sprint 53, Sprint 54
    • Critical Points:
      0

      Description

      The JQL functions "addedAfterSprintStart" and "removedAfterSprintStart" do not work within an anonymous session.

      Steps to reproduce:

      • Allow anonymous access
      • Access Jira without login
      • Run a JQL query with "addedAfterSprintStart" or "removedAfterSprintStart"

      Expected result:
      JQL query is executed and returns the results

      Actual result:
      The following exception is generated:

      groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method com.atlassian.greenhopper.service.rapid.view.RapidViewServiceImpl#findRapidViewsByName.
      Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:
      	[interface com.atlassian.crowd.embedded.api.User, class java.lang.String]
      	[interface com.atlassian.jira.user.ApplicationUser, class java.lang.String]
      	at groovy.lang.MetaClassImpl.doChooseMostSpecificParams(MetaClassImpl.java:3251)
      	at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3228)
      	at groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:3160)
      	at groovy.lang.MetaClassImpl.getMethodWithCachingInternal(MetaClassImpl.java:1348)
      	at groovy.lang.MetaClassImpl.createPojoCallSite(MetaClassImpl.java:3406)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPojoSite(CallSiteArray.java:131)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:165)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:136)
      	at com.onresolve.scriptrunner.canned.jira.utils.plugins.RapidBoardUtils.getBoardId(RapidBoardUtils.groovy:119)
      	at com.onresolve.scriptrunner.canned.jira.utils.plugins.RapidBoardUtils$getBoardId.call(Unknown Source)
      	at com.onresolve.jira.groovy.jql.plugins.AddedRemovedAfterSprintStart.getQuery(AddedRemovedAfterSprintStart.groovy:126)
      	at com.onresolve.jira.groovy.jql.plugins.AddedRemovedAfterSprintStart$getQuery.call(Unknown Source)
      

        Attachments

          Activity

            People

            Assignee:
            tbatagiannis Thanos Batagiannis
            Reporter:
            dmondardo Damiano Mondardo [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: