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] Unable to add new datatypes #1288

Closed
jsomwaru opened this issue Apr 22, 2020 · 3 comments
Closed

[Bug] Unable to add new datatypes #1288

jsomwaru opened this issue Apr 22, 2020 · 3 comments
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@jsomwaru
Copy link

jsomwaru commented Apr 22, 2020

Request Type

Bug

Work Environment

Question Answer
OS version (server) AL2
TheHive version / git hash 4.0
Package Type RPM

Problem Description

I think I found a bug in the Hive4. When I sign in as an admin and navigate to:

Admin > Observable types

Then try to add an observable. The observable appears in in the UI on the observable types page. However, when i sign out and sign into my personal account on the hive. When trying to add observables to the case the new data types are not there.

Also in the Admin > Observable types page I am not able to delete added datatypes.

Steps to Reproduce

  1. Authenticate admin account
  2. Admin > Observable types
  3. add type
  4. Create a case and new type is not there

Complementary information

Screen Shot 2020-04-21 at 2 37 33 PM

Screen Shot 2020-04-21 at 2 38 20 PM

@jsomwaru jsomwaru added TheHive4 TheHive4 related issues bug labels Apr 22, 2020
@jsomwaru
Copy link
Author

This issue probably won't be looked at because you guy are completely redoing observables. But this is a bug and currently not possible in the latest release of the hive4.

@jsomwaru
Copy link
Author

The bug can be seen in the logs.

On the admin add Observable types page:
The logs show the service making a request to
Screen Shot 2020-04-27 at 4 22 25 PM

On the Case page:
The logs show the service going to
Screen Shot 2020-04-27 at 4 23 45 PM

These api requests return different data. The list_artifactDataTypes api call only return data types created by the system and this is why adding observable types does not and will not work on the most recent version of the hive4.

@nadouani nadouani self-assigned this May 10, 2020
@nadouani nadouani added this to the 4.0.0-RC3 milestone May 10, 2020
@nadouani
Copy link
Contributor

In fact, the observable dialog relies on the old api for observable datatypes. We will use the new API. Thanks for finding this bug.

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

No branches or pull requests

2 participants