hakbot / hakbot-origin-controller

Vendor-Neutral Security Tool Automation Controller (over REST)
30 stars 18 forks source link

Creating a Job with unknown provider will "mess up" the UI #17

Closed gbena closed 7 years ago

gbena commented 7 years ago

When a new Job is submitted with an unknown provider (whether it is on purpose or not, ie typo entering the class name), then the UI will not show any Jobs anymore. Instead it will show "Loading, please wait"

Sample bad Job request: { "name": "My Job", "provider": { "class": "io.hakbot.providers.shell.ShellProviderTest", "payload": { "command": "ls" } }, "publisher": { "class": "io.hakbot.publishers.filesystem.FileSystemPublisher", "payload": { "publishPath": "/tmp/" } } }

gbena commented 7 years ago

2017-02-17-115516_1089x215_scrot

gbena commented 7 years ago

Note that retrieving Jobs from the RestAPI works fine. It is only the UI. Once that bad Job is deleted, the UI works again.

stevespringett commented 7 years ago

As a workaround, you can delete the UUID of the job in question until an updated snapshot is available with this fix.