-
Notifications
You must be signed in to change notification settings - Fork 807
Closed
Labels
BugAn error, flaw, misbehavior or failure in the Monkey or Monkey Island.An error, flaw, misbehavior or failure in the Monkey or Monkey Island.Complexity: LowImpact: Low
Description
Describe the bug
If the frontend gets an unexpected Island mode from the backend (not "advanced", "ransomware", or "unset"), the configuration page crashes.
To Reproduce
Steps to reproduce the behavior:
- Run the Island with any mode.
- Modify the
mode
field insimulation_state.json
(in the data directory) to something other than "advanced", "ransomware", or "unset". - Go to the configuration page on the Island.
Expected behavior
It shouldn't crash and should probably default to "unset" if the mode isn't recognised. This should be changed in the backend. If the mode is not recognised, the endpoint should return "unset". If this seems more like something that the frontend should handle, we should add the condition to the logic to set the mode as "unset" if it's not recognised.
Screenshots
2022-11-15.18-00-10.mp4
Metadata
Metadata
Assignees
Labels
BugAn error, flaw, misbehavior or failure in the Monkey or Monkey Island.An error, flaw, misbehavior or failure in the Monkey or Monkey Island.Complexity: LowImpact: Low