OpenCTI-Platform / opencti

Open Cyber Threat Intelligence Platform
https://opencti.io
Other
6.45k stars 948 forks source link

Improve handling of upsert of existing markings #9027

Open nino-filigran opened 6 days ago

nino-filigran commented 6 days ago

Environement Demo

Scenario:

  1. My user cannot manage danger zone
  2. I create a new marking type TLP, with definition TLP:GREEN, a random colour and a random code
  3. Click on create
  4. Marking seems to be created but instead I have the TLP:GREEN marking with the green colour and the orignal order. If I scroll I can see a second marking of this type.
  5. Refresh
  6. Only mone marking remains

Expected output: an error message when I create to let me know that the marking I’m trying to create is protected.

Current output: we try to create a marking, but the created marking does not have the values I’ve sepcified and it feels like I have twoce the same marking in my list which is confusing.