TheHive-Project / TheHive-Project/Cortex
Can't create organisation named with "_"
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.6k
- Forks
- 264
- PR merge metrics
- No merged PRs in 30d
Description
Request Type
When creating an Organisation named with "_", for example "org_blah", the organisation is created successully and also create users in this org, but we cannot list users (see screenshot).

The path used to run the _search query is wrong (/api/organization/Org/blah/user/_search instead of /api/organization/Org_blah/user/_search

Contributor guide
No contributing guide indexed for this repository
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 organization user _search API endpoint described in the report and trace how an organization name containing _ becomes the request path. Reproduce the case with an organization such as org_blah, then verify that user listing uses the complete organization name and succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100