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

Compatibility with Bitbucket Server 4.12

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.3.15
    • Labels:
      None
    • Sprint:
      Sprint 27 - Ends Nov 18
    • Critical Points:
      0

      Description

      When you go to a hook, event handler or anything that has the tree to allow you to select repositories they fail to load and the following exception is present in the logs for BBS 4.12:

      2016-12-13 10:58:28 [http-bio-8080-exec-1] ERROR c.a.p.r.c.e.j.ThrowableExceptionMapper - Uncaught exception thrown by REST service: null
      java.lang.UnsupportedOperationException: null
      	at com.google.common.collect.UnmodifiableListIterator.set(UnmodifiableListIterator.java:53) ~[guava-18.0.jar:na]
      	at java.util.List.sort(List.java:482) ~[na:1.8.0_74]
      	at java.util.Collections.sort(Collections.java:175) ~[na:1.8.0_74]
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.sort(DefaultGroovyMethods.java:8474) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.sort(DefaultGroovyMethods.java:8438) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.dgm$566.invoke(Unknown Source) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:87) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at com.onresolve.scriptrunner.canned.bitbucket.util.BitbucketCannedScriptUtils$_getPublicRepos_closure4.doCall(BitbucketCannedScriptUtils.groovy:94) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_74]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_74]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_74]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_74]
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at groovy.lang.Closure.call(Closure.java:426) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at groovy.lang.Closure.call(Closure.java:442) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2056) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at com.onresolve.scriptrunner.canned.bitbucket.util.BitbucketCannedScriptUtils.getPublicRepos(BitbucketCannedScriptUtils.groovy:93) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at com.onresolve.scriptrunner.canned.bitbucket.util.BitbucketCannedScriptUtils.getReposByProjectAsTree(BitbucketCannedScriptUtils.groovy:79) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at com.onresolve.scriptrunner.canned.bitbucket.util.BitbucketCannedScriptUtils$getReposByProjectAsTree.call(Unknown Source) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at com.onresolve.scriptrunner.runner.HookManagerImpl.getRepositoriesParam(HookManagerImpl.groovy:57) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at com.onresolve.scriptrunner.runner.rest.bitbucket.AbstractHooksRestEndpoint.getHookParams(AbstractHooksRestEndpoint.groovy:183) ~[plugin_5327376397836634672_sr_1481626671000.jar:4.3.15-SNAPSHOT]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_74]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_74]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_74]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_74]
      	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[atlassian-rest-module-3.0.14_1481513848000.jar:na]
      	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) ~[atlassian-rest-module-3.0.14_1481513848000.jar:na]
      	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[atlassian-rest-module-3.0.14_1481513848000.jar:na]
      

      It looks like Atlassian are returning immutable lists now.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: