Bug: WorkflowBlueprints index broken if you add a blueprint with data that can't be properly json decoded #10128
Labels
needs triage
This issue has been automatically labelled and needs further triage
Actual behavior
It's possible to set blueprint data to something that's can't be properly json decoded, which breaks the blueprint index and the associated workflow edit function.
Expected behavior
It shouldn't be possible to set blueprint data to something that breaks the index etc...
Steps to reproduce
Note you will have to do intervention in the database to get your functionality back if you do these steps:
Edit an existing blueprint, set data to / , submit.
-> cry :)
Things break here:
MISP/app/Model/WorkflowBlueprint.php
Line 66 in 1489090
Version
2.4.201
Operating System
Ubuntu
Operating System version
22.04
PHP version
7.4
Browser
No response
Browser version
No response
Relevant log output
Extra attachments
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: