Unexpected behavior for external references created in the context of Automatic references at file upload
Description
When Automatic references at file upload is activated, an external reference is created when uploading a file in an entity. These external references behave differently, and I'm not sure if it is an expected behavior or not.
1st unexpected behavior is that it is not possible to remove the external reference, only to update or delete it. Is it normal?
2nd unexpected behavior is that these external references can be seen in the list of 'Add external references', but cannot be selected. Is it expected? Are these external references supposed to be listed in 'Add external references' at all?
Environment
- OS (where OpenCTI server runs): { e.g. Mac OS 10, Windows 10, Ubuntu 16.4, etc. }
- OpenCTI version: { e.g. OpenCTI 1.0.2 }
- OpenCTI client: { e.g. frontend or python }
- Other environment details:
Reproducible Steps
Steps to create the smallest reproducible scenario:
- Activate the 'Automatic references at file upload' configuration on your report
- Create a report with a file associated
- Go to the report, see the external ref that was created
Expected Output
Should this external reference behave the same way as other external references?
Actual Output
Additional information
Screenshots (optional)
@JeremyCloarec I see a PR: did you already worked on this ?
we worked on solving the initial bug, but there was some behaviors that we weren't sure if they were intended or not. We created this issue to keept track of them and discuss them to see if they need to be changed or not
@JeremyCloarec does this ticket still needs to be open?
Fix: filter out not the selection of an external ref when it refers to a file