Implementation of a check when creating a relationship: if object_observable id is different from observable id, then the relationship can be created; otherwise, it cannot be created.
Initially, when creating the relationship, we could have had an identical ref for source_refand target_ref, which would have caused the error: UNSUPPORTED ERROR (Relation cant be created with the same source and target)
Changes made to MISP & MISP-FEED connectors
Related issues
2868
Checklist
[x] I consider the submitted work as finished
[x] I tested the code for its functionality using different use cases
[ ] I added/update the relevant documentation (either on github or on notion)
[ ] Where necessary I refactored code to improve the overall quality
Proposed changes
Implementation of a check when creating a relationship: if
object_observable
id is different fromobservable
id, then the relationship can be created; otherwise, it cannot be created. Initially, when creating the relationship, we could have had an identical ref forsource_ref
andtarget_ref
, which would have caused the error:UNSUPPORTED ERROR (Relation cant be created with the same source and target)
Changes made to
MISP
&MISP-FEED
connectorsRelated issues
2868
Checklist
Further comments