Skip to content

fix: Fix server crash when Election ID in request is not a valid MongoDB ObjectID

Kshitij Chauhan requested to merge haroldadmin/Agora-Web:mongodb-id-fix into master

Fixes #83.

Adds verification of request ID parameter using a regular expression to make sure database requests with invalid IDs are not executed.

I have verified my changes solve the problem by executing various elections related requests using the Swagger UI of my local instance of the server.

Edited by Kshitij Chauhan

Merge request reports