Unhandled corner case duplicate submission #9

Open
opened 2021-09-29 10:45:38 +00:00 by lauri · 0 comments
Owner

When RequestExists is thrown mongo_doc object will be unavailable:

rsa-server-backend_1         |   File "/src/pinecrypt/server/api/request.py", line 172, in on_post
rsa-server-backend_1         |     url = "https://%s/api/event/request-signed/%s" % (const.AUTHORITY_NAMESPACE, str(mongo_doc["_id"]))
rsa-server-backend_1         | UnboundLocalError: local variable 'mongo_doc' referenced before assignment
When `RequestExists` is thrown `mongo_doc` object will be unavailable: ``` rsa-server-backend_1 | File "/src/pinecrypt/server/api/request.py", line 172, in on_post rsa-server-backend_1 | url = "https://%s/api/event/request-signed/%s" % (const.AUTHORITY_NAMESPACE, str(mongo_doc["_id"])) rsa-server-backend_1 | UnboundLocalError: local variable 'mongo_doc' referenced before assignment ```
marva was assigned by lauri 2021-09-29 11:15:35 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pinecrypt/pinecrypt-gateway-backend#9
No description provided.