hobbit-project / platform

HOBBIT benchmarking platform
GNU General Public License v2.0
23 stars 9 forks source link

Unset parameters cause HTTP 500 #50

Closed MichaelRoeder closed 7 years ago

MichaelRoeder commented 7 years ago

Problem

If

a java.lang.NullPointerException is thrown in the GUI serverbackend:

at de.usu.research.hobbit.gui.rabbitmq.PlatformControllerClient.addParameters(PlatformControllerClient.java:284)

because there is no Literal for the given parameter. The request of the GUI client is answered with HTTP 500.

The problem can even be reproduced by taking a benchmark and removing the default value of a parameter without setting a new value.

Proposed solution

It should not be possible to submit an experiment if one of the parameters is empty.

MichaelRoeder commented 7 years ago

Added a more expressive error message. Unfortunately, the Front End still shows Response with status: 500 Request failed. for URL: http://192.168.99.100:8080/rest/benchmarks. Maybe, a good way to bring an error message from the backend to the front end (i.e., to be visible for the user) would be good as well.

romankorf commented 7 years ago

Simple bugfix on https://github.com/hobbit-project/platform/tree/bug%2350