exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.51k stars 753 forks source link

Subject with square brackets [ ] in name cannot be renamed or deleted #899

Open rotj opened 2 years ago

rotj commented 2 years ago

Describe the bug Putting square brackets in a subject name prevents deletion or renaming of subject

To Reproduce Steps to reproduce the behavior:

  1. Create a new recognition subject with square brackets in the name, like "[test]".
  2. From the [test] personal profile, click the delete icon.

Expected behavior Subject is deleted

Error: <!doctype html>HTTP Status 400 – Bad Request

HTTP Status 400 – Bad Request

Desktop (please complete the following information):

Additional context I tried using curl with various ways to escape the brackets but that didn't work either. -X DELETE "http://localhost:8000/api/v1/recognition/subjects/%5Btest%5D" -X DELETE "http://localhost:8000/api/v1/recognition/subjects/\[test]"

pospielov commented 2 years ago

thanks for reporting, I'll create a bug for this

kitarolivier commented 1 year ago

please correct the bug. I have to delete the app and recreate to remove subjects with [ ] :(