Uploaded image for project: 'SR Platform'
  1. SR Platform
  2. SRPLAT-1319

Custom scripts returning String from getHelpUrl() not working

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: L3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.11.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      DevTools 87
    • Critical Points:
      0.7

      Description

      2020-09-29 11:44:13 [http-nio-8080-exec-10] WARN  c.o.s.r.r.CannedScriptDescriptionFactory - Failed to instantiate com.onresolve.scriptrunner.canned.bitbucket.hooks.TrustedCommitAuthors, Cannot cast object 'bitbucket/PreReceiveHooks.html#_enforce_trusted_commit_authors' with class 'java.lang.String' to class 'com.onresolve.scriptrunner.canned.docs.DocLink'
      org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'bitbucket/PreReceiveHooks.html#_enforce_trusted_commit_authors' with class 'java.lang.String' to class 'com.onresolve.scriptrunner.canned.docs.DocLink'
      	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:415)
      	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:329)
      	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:243)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.asType(DefaultGroovyMethods.java:17144)
      	at org.codehaus.groovy.runtime.StringGroovyMethods.asType(StringGroovyMethods.java:197)
      	at org.codehaus.groovy.runtime.dgm$1106.doMethodInvoke(Unknown Source)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
      	at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:999)
      	at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:990)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:180)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.asType(ScriptBytecodeAdapter.java:603)
      	at com.onresolve.scriptrunner.runner.rest.CannedScriptDescriptionFactory.describeScript(CannedScriptDescriptionFactory.groovy:99)
      

        Attachments

          Structure

            Activity

              People

              Assignee:
              rlander Reece Lander
              Reporter:
              rlander Reece Lander
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel