Closed TheVamp closed 1 month ago
This situation should return a HTTP status 400 as it is a client request error.
(Furthermore passing non-supported languages result in a status 401
which should also be changed to a 400
as it is not about authorization. But this could be OK if the thinking is that any language could be added)
ArcadeDB Version:
24.5.1-SNAPSHOT (build 629cc8382fb2c6be37bf6cdbcc31018b48dde44a/1715654899278/main)
OS and JDK Version:
<ArcadeDB_0> Running on Linux 6.6.15-amd64 - OpenJDK 64-Bit Server VM 11.0.23 (Temurin-11.0.23+9)
docker pull arcadedata/arcadedb:latest
Expected behavior
{"error":"Internal error","exception":"missing language parameter"}
Actual behavior
{"error":"Internal error","exception":"java.lang.NullPointerException"}
Steps to reproduce
mydb
{"command":"check database","limit":25,"profileExecution":"basic","serializer":"studio"}
tohttp://localhost:2480/api/v1/command/mydb