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

Owner is case-sensitive on api calls #928

Closed
zpriddy opened this issue Mar 15, 2019 · 3 comments
Closed

Owner is case-sensitive on api calls #928

zpriddy opened this issue Mar 15, 2019 · 3 comments
Assignees
Labels
Milestone

Comments

@zpriddy
Copy link

zpriddy commented Mar 15, 2019

Request Type

Bug

Work Environment

Question Answer
TheHive version / git hash 3.3.0-RC6

Problem Description

When setting the owner of a case through the API the owner is case-sensitive and does not convert to lowercase. I only notice this problem because i set the case owner to SecurityBot and everything looks fine... but when you do a filter of Security Bot (securitybot) there are no results. Only when doing filters is this noticeable.

@nadouani
Copy link
Contributor

What's the username in the DB? SecurityBot or securitybot? I guess it's lowercase right? That means that the API is in fact not lower casing the username.

@nadouani nadouani added the bug label Mar 26, 2019
@nadouani nadouani added this to the 3.4.0-RC1 milestone Mar 26, 2019
@crackytsi
Copy link

Usename gets automatically lowercased, if you create it or if you try to Login using the GUI.
This is inconsistent, should happen on API as well ;)

@zpriddy
Copy link
Author

zpriddy commented Mar 28, 2019

What's the username in the DB? SecurityBot or securitybot? I guess it's lowercase right? That means that the API is in fact not lower casing the username.

Correct @crackytsi is correct, the API is not lowercasing the name when the post is called.

@To-om To-om modified the milestones: 3.5.0-RC1, 3.4.1 Apr 7, 2020
To-om added a commit that referenced this issue Apr 7, 2020
@To-om To-om closed this as completed Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants