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

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.6.3
    • Fix Version/s: 5.6.3.2
    • Labels:
      None
    • Sprint:
      DevTools 61
    • Critical Points:
      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

          Structure

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel