opensearch-project / opensearch-project/security-analytics
[BUG] Validate for existing name when creating detector
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 111
- Forks
- 111
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 13
Description
What is the bug?
When user creates a detector, we are not verifying if a detector with same name already exists.
How can one reproduce the bug?
Steps to reproduce the behavior:
- Create a detector using create detector API
- Create another detector with same name
What is the expected behavior?
API fails to created the second detector with error along the lines of detector with same name already exists
What is your host/environment?
NA
Do you have any screenshots?
Na
Do you have any additional context?
NA
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the create detector API entry point and reproduce the two-step request sequence described in the issue. Trace how detector names are handled during creation and confirm that a second detector with the same name is rejected with an appropriate error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100