aau-network-security / haaukins

A Highly Accessible and Automated Virtualization Platform for Security Education
https://general.haaukins.com
Apache License 2.0
184 stars 39 forks source link

events are saved to db even though it failed to start #701

Closed mrtrkmn closed 2 years ago

mrtrkmn commented 2 years ago

Describe the bug The event is saved to database even though it is not successfully created. It can lead some problems when the platform is back, there should not be manual manipulation of database.

To Reproduce Call create event with some parameters which is actually not present. Anything which causes the platform to crash.

Expected behavior

The platform should handle this issue, like when there is a problem of creating event, all changes (if any) should be reverted.

Preliminary check is required