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

Hooks get applied to requests they can't handle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • 5.6.3
    • 5.6.3.2
    • None
    • None
    • DevTools 61
    • 0

    Description

      Hooks using the default trigger settings are now triggered by a wider range of requests, some of which they were not designed to handle.

      An example error message you might see in atlassian-bitbucket.log is:

      org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'com.atlassian.bitbucket.hook.repository.SimplePullRequestMergeHookRequest@32f59b7e' with class 'com.atlassian.bitbucket.hook.repository.SimplePullRequestMergeHookRequest' to class 'com.atlassian.bitbucket.hook.repository.RepositoryPushHookRequest' at com.onresolve.scriptrunner.canned.bitbucket.hooks.MaxFilesizeHook.doScript(MaxFilesizeHook.groovy:77)
      

      The precise classes may differ depending on the triggering request and the responding hook.

      Attachments

        Activity

          People

            szaporozhtsev Sergey Zaporozhtsev [X] (Inactive)
            jchoules Joanna Choules
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: