Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-354

Bitbucket 5.11 compatibility

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4.6
    • Labels:
      None
    • Sprint:
      Sprint 37 - Ends Jan 29
    • Critical Points:
      0

      Description

      Make ScripRunner compatible with Bitbucket Server 5.11.

      Plugin startup fails with the following exception:

      2018-05-29 12:55:00 [ThreadPoolAsyncTaskExecutor::Thread 25] WARN  c.o.s.runner.ScriptRunnerImpl - Failed to create scripts directory or get home directory
      org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '/opt/avst_prod_bm_agnt1/home/xml-data/build-dir/SR-SRCID-BITBUCKET5111/bitbucket/build/home' with class 'sun.nio.fs.UnixPath' to class 'java.io.File'
      	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:405)
      	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:319)
      	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603)
      	at com.onresolve.scriptrunner.runner.util.HomeLocator.getHome(HomeLocator.groovy:46)
      	at com.onresolve.scriptrunner.runner.util.HomeLocator$getHome.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      	at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.getHomeScriptDir(ScriptRunnerImpl.groovy:609)
      	at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.initScriptEngines(ScriptRunnerImpl.groovy:548)
      	at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.init(ScriptRunnerImpl.groovy:119)
      	at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.<init>(ScriptRunnerImpl.groovy:109)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)

        Attachments

          Activity

            People

            Assignee:
            amarkham Adam Markham
            Reporter:
            amarkham Adam Markham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: