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

CustomFields rendering fails for anonymous access

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.9
    • Component/s: None
    • Labels:
    • Critical Points:
      0

      Description

      CustomFields rendering fails for anonymous access.

      An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRealVelocityParameters' in class com.onresolve.jira.groovy.GroovyCustomField threw exception groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method $Proxy79#hasPermission. Cannot resolve which method to invoke for [class java.lang.Integer, null] due to overlapping prototypes between: [int, interface com.atlassian.crowd.embedded.api.User] [int, interface com.atlassian.jira.user.ApplicationUser] at com.onresolve.jira.groovy.groovyrunner:scripted-field/templates/customfield/view-scriptedfield.vm[line 3, column 59] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:155) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at

      The problematic part seems to be:

      https://bitbucket.org/jamieechlin/scriptrunner-public/src/f37f6c2d74aa/src/main/groovy/com/onresolve/jira/groovy/GroovyCustomField.groovy#cl-295

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jechlin Jamie Echlin
              Reporter:
              christian.wurbs Christian Wurbs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: