Assure compatability with Stash 2.x

Issue #1 new
Anonymous created an issue

Caused by: java.lang.NoSuchMethodError: com.atlassian.stash.repository.RepositoryService.findRepositoryById(Ljava/lang/Integer;)Lcom/atlassian/stash/repository/Repository; at com.hascode.plugin.servlet.QRCodeServlet.handleRepository( ~[na:na] at com.hascode.plugin.servlet.QRCodeServlet.handleProjectOrRepository( ~[na:na] at com.hascode.plugin.servlet.QRCodeServlet.doGet( ~[na:na] at javax.servlet.http.HttpServlet.service( ~[servlet-api.jar:na] at javax.servlet.http.HttpServlet.service( ~[servlet-api.jar:na] at com.atlassian.plugin.servlet.DelegatingPluginServlet.service( ~[atlassian-plugins-servlet-2.13.4.jar:na] at javax.servlet.http.HttpServlet.service( ~[servlet-api.jar:na] at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service( ~[atlassian-plugins-servlet-2.13.4.jar:na] at javax.servlet.http.HttpServlet.service( ~[servlet-api.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ~[catalina.jar:7.0.40]

Comments (6)

  1. Micha Kops repo owner

    Hi @TreadStone , thanks for posting this issue! I took the liberty of renaming the issue and changing it to a feature request since the plugin is marked to be compatible with Stash version 1.0.0 - 1.1.2 so it's not a bug. Nevertheless would it be nice support the product ranges up to the latest version!

    Best regards


  2. Anonymous


    thanks :) Sorry, I didn't look at the compatibility list. I just installed the plugin and assumed it would be working. You're completely right though, it should be a feature request.

    If I can help you in any way, just let me know.

    Thanks again!


  3. Micha Kops repo owner

    @TreadStone no problem :)

    Some APIs have changed in Stash 2.x .. the easy one is the one mentioned above .. we just need to use getById from the RepositoryManager instead of findRepositoryById .. Atlassian has deprecated and finally removed this method.

    More complex is to fix the integration into the user interface and to switch to Soy templates here ...

    I've put the plugin under the Apache 2.0 license and the sources are available here if you're interested :)

  4. Log in to comment