Closed akshaysth closed 7 months ago
Thanks you for reporting your issue.
The payload you sent is the one used when you had the Validation error
that's right?
It could be interesting for us to know if some of the other entities mapped in this mapper also had markings as required field?
@lndrtrbn the following entities have markings as a required field:
I did further testing and was able to replicate the same behaviour on a fresh install as well. The ability to not specify markings for Relationships seems to be the root. Ideally all entities & relationships should have their respective properties all available in the CSV Mapper configuration UI with the required fields highlighted appropriately.
@lndrtrbn upon further testing, I've updated the description and title of the issue. Simply requiring the Markings
in the Relationships
customization is able to replicate the issue with the CSV Mapper.
Thank you for your feedbacks. Indeed some attributes are missing for some representations in the CSV Mapper and that's an issue if you can't map them. @Jipegien this issue is related with what we discussed about the list of attributes for each representation.
Related to #5838
@akshaysth you should be able to fill your required fields for relationships with the last release we have done
@lndrtrbn thank you! I don't see it on 5.12.31 yet. I'll have to wait for the next release that contains the fix.
The fix has been released in 5.12.31 so you should be able to specify markings in relationships representations in the CSV mapper. What issue do you have ?
@lndrtrbn I'm on 5.12.32 and not seeing the additional fields being displayed.
I can confirm that it's available in the rolling release. Just not the bug fix releases i.e. 5.12.31 or 5.12.32.
@lndrtrbn Confirmed in the master branch, also saw one other issue.
https://github.com/OpenCTI-Platform/opencti/assets/1334279/7abaa008-f1a1-43a7-9db5-3bb9cee66b20
Also, the "relation connection" cannot be mapped and need to be removed from the list. If any doubt, please talk with @richard-julien .
Indeed there is an other issue where required fields are not highlighted in the relationship representation. I'll create an other github issue for this one.
For the original issue. I'm not sure to understand what is confirmed 😅 You confirm that the issue is solved right?
EDIT
I can confirm that it's available in the rolling release. Just not the bug fix releases i.e. 5.12.31 or 5.12.32.
Indeed, you will see this fix in the next feature release
So we can close it?
Fixed in rolling
Hi we've tried applying the commit that was potentially supposed to fix this issue: https://github.com/OpenCTI-Platform/opencti/commit/49ecb647c97951e478c30df0c3d7e454cd876a16 However, that did not solve it. Any insights if there were commits more recently that fixes this issue?
Description
For entity types that were customized for requiring mandatory attributes, CSV Mapper fails to display the fields appropriately in the configuration panel.
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
Relationships
in Settings > Customization > Entity Types and toggleMarkings
to be mandatory.Expected Output
The CSV Mapper configuration panel should expose all attributes for each entity type. If any attributes have been customized as mandatory, there should be validation testing done to ensure the required fields are populated.
Actual Output
When testing the CSV Mapper configuration, the platform throws the below error:
Below is the payload being sent as part of the mapper testing request:
The screenshot below also illustrates that the
Relationships
entity that is customized to requireMarkings
isn't exposing the attribute for configuration in the Mapper's details panel.Additional information
Screenshots (optional)