TheHive-Project / TheHive-Project/Cortex

How I can deleted a user present on GUI

Open
#332 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.6k
Forks
264
PR merge metrics
No merged PRs in 30d

Description

How I can deleted a user present on GUI
I tried from command:
curl -X DELETE "IP:9200/cortex_2/user/[user_mail]"

But i got the following error:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [cortex_2] as the final mapping would have more than 1 type: [_doc, user]"}],"type":"illegal_argument_exception","reason":"Rejecting mapping update to [cortex_2] as the final mapping would have more than 1 type: [_doc, user]"},"status":400}r

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the DELETE request for the /cortex_2/user/[user_mail] endpoint and compare it with the GUI's user-deletion flow. Trace the request handling and Elasticsearch mapping involved; done means a user can be deleted through the GUI or API without the reported mapping error.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch
Domain
api, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.