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] CustomFields does not appear sorted in the case template #1383

Closed
susangz opened this issue Jun 5, 2020 · 5 comments
Closed

[Bug] CustomFields does not appear sorted in the case template #1383

susangz opened this issue Jun 5, 2020 · 5 comments
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@susangz
Copy link

susangz commented Jun 5, 2020

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
OS version (client) Ubuntu 18.04.4 LTS
TheHive version / git hash thehive4 (4.0.0-0.1RC1)
Package Type deb

Problem Description

Custom fields added to a template does not appear in that order when a case is created.
When the template is exported, the order fields is correct but that order is not followed when the case is shown in TheHive GUI.

Steps to Reproduce

  1. Create custom fields
  2. Add them to a template in a predefined order
  3. Create a new Case with that template
  4. Check the Additional information in the new case with the custom fields does not appear in the order they were included in the template.
@susangz susangz added TheHive4 TheHive4 related issues bug labels Jun 5, 2020
@nadouani nadouani self-assigned this Jun 24, 2020
@nadouani nadouani added this to the 4.0.0 milestone Jun 24, 2020
@nadouani
Copy link
Contributor

Hello, is this issue true in RC3?

@nadouani nadouani removed this from the 4.0.0 milestone Jul 5, 2020
@nadouani
Copy link
Contributor

nadouani commented Jul 5, 2020

Please reopen if this is still valid

@nadouani nadouani closed this as completed Jul 5, 2020
@nadouani
Copy link
Contributor

Reopening the issue as I can confirm it exists

@nadouani nadouani reopened this Jul 10, 2020
@nadouani nadouani added this to the 4.0.0 milestone Jul 10, 2020
@nadouani nadouani assigned To-om and unassigned nadouani Jul 10, 2020
@nadouani
Copy link
Contributor

@To-om the orders of custom fields in case template are not taken into account when creating a case from a template

@nadouani nadouani changed the title [Bug]CustomFields does not appear sorted in the case template [Bug] CustomFields does not appear sorted in the case template Jul 10, 2020
@To-om To-om closed this as completed Jul 15, 2020
@s-knauer
Copy link

s-knauer commented Sep 28, 2020

The sequence of custom fields is still not preserved in alert and case creation for TH4.

I set the order in the case template and checked the (equivalent) order being in the CustomFieldhelper.fields dictionary when using thehive4py for uploading a new alert (which should be imported as a case via the case template.)

The dictionary shows: {'fieldname' : {'order': 0, 'string': 'ABCD'}, 'fieldname2': {'order': 1, 'string': 'EFGH'} .... }.
The template also states the correct sorting for Custom Fields: Fieldname, then fieldname2 and so on.
But the display in the webinterface is randomised. In the alert as well as in the case.

When i create an empty case via the webinterface, the fields have the right order. But when using real data for creating an alert, the ordering is ignored.

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

4 participants