Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Creating Cases via API ignores the owner field #1473

Closed
drb0rn4gr8ness opened this issue Aug 12, 2020 · 0 comments · Fixed by #1841
Closed

[Bug] Creating Cases via API ignores the owner field #1473

drb0rn4gr8ness opened this issue Aug 12, 2020 · 0 comments · Fixed by #1841
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@drb0rn4gr8ness
Copy link

Creating Cases via API ignores the owner field.

Request Type

Bug

Work Environment

Question Answer
TheHive 4.0.0-1,
API (using Postman & python scripts)

Problem Description

When I submit to create a case via API. The case is created but the owner is always assigned to the API Key that I'm using, even if I submit a user. I have been submitting the user login/email. This field is being ignored and automatically assigned to the user of the API Key.

Steps to Reproduce

  1. Create an Organization/User
  2. Do an API Post request to /api/case and include the owner field with user login different from the API User.
  3. The owner field will be the API User
@drb0rn4gr8ness drb0rn4gr8ness added TheHive4 TheHive4 related issues bug labels Aug 12, 2020
@rriclet rriclet self-assigned this Mar 16, 2021
@rriclet rriclet linked a pull request Mar 16, 2021 that will close this issue
To-om added a commit that referenced this issue Mar 16, 2021
#1473 fixed case creation assignee & tests
@To-om To-om added this to the 4.1.0 milestone Mar 16, 2021
@rriclet rriclet closed this as completed Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants