TheHive-Project / TheHive-Project/Cortex

Can't create organisation named with "_"

Open
#294 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug core
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).
image

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

Screenshot 2020-09-15 at 10 55 42

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.