CompreFace
CompreFace copied to clipboard
Subject with square brackets [ ] in name cannot be renamed or deleted
Describe the bug Putting square brackets in a subject name prevents deletion or renaming of subject
To Reproduce Steps to reproduce the behavior:
- Create a new recognition subject with square brackets in the name, like "[test]".
- From the [test] personal profile, click the delete icon.
Expected behavior Subject is deleted
Error:
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]"
thanks for reporting, I'll create a bug for this
please correct the bug. I have to delete the app and recreate to remove subjects with [ ] :(