aau-network-security / haaukins

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

returns false error message on event creation #723

Closed mrtrkmn closed 2 years ago

mrtrkmn commented 2 years ago

Describe the bug When creating an event on webclient, and do not choose frontend. The modal proceeds and the daemon returns invalid startTime format 0001-01-01 00:00:00 +0000 UTC and success message :)

To Reproduce Steps to reproduce the behavior:

  1. Go to webclient
  2. Try to create event without selecting frontend
  3. Check browser console

Expected behavior Create event modal should not proceed without all required fields are selected. Daemon should return correct error message, instead of invalid startTime format 0001-01-01 00:00:00 +0000 UTC there should be no frontend specified, please specify your frontend. (For this specific bug). Error messages should be send correctly by the daemon, otherwise, debugging will be in pain.

Screenshots

image

Additional Information

I already fixed the issue regarding to showing success message on webclient with this PR (https://github.com/aau-network-security/haaukins-webclient/pull/232). However correct message should still be sent by daemon.

mrtrkmn commented 2 years ago

I faced with this wrong error message when I do not select finishTime of the event and then proceed ! This needs to be fixed as well.

mrtrkmn commented 2 years ago

closed with #728