Details
-
Bug
-
Status: Done
-
Major
-
Resolution: Done
-
5.6.3
-
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.