exadel-inc / exadel-inc/CompreFace

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

Open
#899 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

**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 Requestbody {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.