Closed kbrnsr closed 7 years ago
Can you please try to use a string for the size instead of an int, like in the following example?
{u'pattern-1': u'.*',
u'size-1': '100000',
u'pattern-exclude-1': '',
u'pattern-branches-1': ''}
I think it should work then.
I've already fixed the problem by converting the parameter to string, but the plugin should give some kind of error message if the exception occurs instead of getting a 5xx error (this is the acual issue) from the rest api
Using python and Bitbucket Server 4.2.0 (see exception log for more info)
I tried passing the following dict (gets converted to JSON) to the generic "enable" endpoint for hooks:
The problem is that "size-1" is an integer and not a string which makes the validation fail, the logs indicate that line 46 in FileSizeHookValidator.java is the problem: