TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.39k stars 618 forks source link

[Bug] Prevent custom field creation if it already exists #2367

Closed To-om closed 2 years ago

To-om commented 2 years ago

Request Type

Bug

Problem Description

It is possible to create several custom fields with the same name. CustomField name should be unique, TheHive should prevent creation if it already exists.

martinr103 commented 2 years ago

How exactly does it work for the 'Case merge' operation ? When the two merged cases contain a custom field with the same name but different values -> what will happen in the resulting (merged) case ? Still 2 custom fields with same name but 2 different values ? 1 custom field with 2 values ("multivalue") ? Or will the merge operation fail ?