# HG changeset patch # User Goffi # Date 1547106169 -3600 # Node ID ded7657b03fa0018916fd69272979ae97655d66f # Parent b80f7848d8a269e21c17fecda39fb0587cd5cc36 backend: send a BadRequest if RSM max is negative diff -r b80f7848d8a2 -r ded7657b03fa src/backend.py --- a/src/backend.py Sun Jan 06 17:30:04 2019 +0100 +++ b/src/backend.py Thu Jan 10 08:42:49 2019 +0100 @@ -1659,6 +1659,8 @@ def items(self, request): ext_data = {} if const.FLAG_ENABLE_RSM and request.rsm is not None: + if request.rsm.max < 0: + raise pubsub.BadRequest(text="max can't be negative") ext_data['rsm'] = request.rsm try: ext_data['pep'] = request.delegated