Uploaded image for project: 'Notifyr for Bitbucket Server'
  1. NOTIFYR-112

No notification since we upgraded on Bitbucket 4.5.1 (from Stash 3.10.2)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.2
    • Component/s: Hooks
    • Labels:
      None
    • Environment:

      Description

      We are using Atlassian Stash/Bitbucket since June 2015.
      Last week, we upgraded from Stash 3.10.2 to Bitbucket Server 4.5.1.
      We upgraded all the plugins to the latest version (Notifyr plugin version --> 3.2.0).

      We are using the Notifyr plugin to send commit notification with diffs to our mailing lists.
      We used the Hook Migration Tool to migrate all our Notifyr settings.

      Here is one JSON example for one of our repos:

      {"rules":[{"inverted":false,"match": "/*/","notifications":{"address":"opendj-dev@forgerock.org","prefix":"","sendSeparate":false,"includeDiff":true}}]}

      The hook validation is OK (via the repo settings).

      In the atlassian-bitbucket.log, we can find a lot of errors like:

      2016-04-19 09:19:15,344 WARN AtlassianEvent::thread-2 sean.oneill @1XCSBAAx559x2133045x2 maa1pu 172.16.101.94,127.0.0.1 "POST /rest/api/latest/projects/OPENAM/repos/openam/pull-requests/1081/merge HTTP/1.0" c.a.s.i.h.r.AsyncPostReceiveRepositoryHookAdapter Push Event Hook nl.stefankohler.bitbucket.notifyr.hook.JsonNotificationHook failed.
      com.atlassian.bitbucket.AuthorisationException: You are not permitted to access this resource
      at com.atlassian.stash.internal.aop.ExceptionRewriteAdvice.afterThrowing(ExceptionRewriteAdvice.java:36) ~bitbucket-platform-4.5.1.jar:na
      at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) ~atlassian-plugins-core-4.1.1.jar:na
      at nl.stefankohler.bitbucket.notifyr.hook.HookConfigurationService.getSettings(HookConfigurationService.java:66) ~na:na
      at nl.stefankohler.bitbucket.notifyr.hook.HookConfigurationService.getConfiguration(HookConfigurationService.java:44) ~na:na
      at nl.stefankohler.bitbucket.notifyr.hook.JsonNotificationHook.processUpdates(JsonNotificationHook.java:78) ~na:na
      at nl.stefankohler.bitbucket.notifyr.hook.JsonNotificationHook.postReceive(JsonNotificationHook.java:62) ~na:na
      at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter$1.visit(AsyncPostReceiveRepositoryHookAdapter.java:49) bitbucket-service-impl-4.5.1.jar:na
      at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter$1.visit(AsyncPostReceiveRepositoryHookAdapter.java:45) bitbucket-service-impl-4.5.1.jar:na
      at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:573) bitbucket-service-impl-4.5.1.jar:na
      at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:549) bitbucket-service-impl-4.5.1.jar:na
      at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) spring-tx-4.2.4.RELEASE.jar:4.2.4.RELEASE
      at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService.visitEnabledHooks(DefaultRepositoryHookService.java:279) bitbucket-service-impl-4.5.1.jar:na
      at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.postReceive(AsyncPostReceiveRepositoryHookAdapter.java:45) bitbucket-service-impl-4.5.1.jar:na
      at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.onRefsChangedEvent(AsyncPostReceiveRepositoryHookAdapter.java:40) bitbucket-service-impl-4.5.1.jar:na
      at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) atlassian-event-3.0.0.jar:na
      at com.atlassian.stash.internal.event.AsyncBatchingInvokersTransformer$AsyncInvokerBatch.invoke(AsyncBatchingInvokersTransformer.java:94) bitbucket-platform-4.5.1.jar:na
      at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46) atlassian-event-3.0.0.jar:na
      at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:34) sal-core-3.0.5.jar:na
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) na:1.8.0_74
      at java.lang.Thread.run(Thread.java:745) na:1.8.0_74
      ... 48 frames trimmed
      Caused by: org.springframework.security.access.AccessDeniedException: Access is denied
      at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:83) ~spring-security-core-3.2.7.RELEASE.jar:3.2.7.RELEASE
      ... 20 common frames omitted

      Thanks for your help !

        Attachments

          Activity

            People

            • Assignee:
              stefan Stefan Kohler
              Reporter:
              bruno.lavit Bruno Lavit
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: