From bcaad3e0fb2d2a53109ff0dd3537e9a918eb6b2f Mon Sep 17 00:00:00 2001 From: f97ada87 <32196103+f97ada87@users.noreply.github.com> Date: Sat, 5 May 2018 12:38:05 +0000 Subject: [PATCH] fix issue 1236 fixes regression introduced in PR #1062 affecting default and minimum lengths of ackdata objects --- src/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.py b/src/api.py index d43bdf0b..795b9179 100644 --- a/src/api.py +++ b/src/api.py @@ -776,8 +776,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): if len(params) != 1: raise APIError(0, 'I need one parameter!') ackdata, = params - if len(ackdata) != 64: - raise APIError(15, 'The length of ackData should be 32 bytes (encoded in hex thus 64 characters).') + if len(ackdata) < 76: + raise APIError(15, 'The length of ackData should be at least 38 bytes (encoded in hex thus 76 characters).') ackdata = self._decode(ackdata, "hex") queryreturn = sqlQuery( '''SELECT status FROM sent where ackdata=?''',