CompreFace icon indicating copy to clipboard operation
CompreFace copied to clipboard

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

Open rotj opened this issue 2 years ago • 2 comments

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:

HTTP Status 400 – Bad Request

HTTP Status 400 – Bad Request

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 1.0.1

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]"

rotj avatar Sep 19 '22 19:09 rotj

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

pospielov avatar Sep 29 '22 09:09 pospielov

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

kitarolivier avatar Aug 21 '23 09:08 kitarolivier