Details
-
Type:
Bug
-
Status: Done
-
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.