ArcadeData / arcadedb

ArcadeDB Multi-Model Database, one DBMS that supports SQL, Cypher, Gremlin, HTTP/JSON, MongoDB and Redis. ArcadeDB is a conceptual fork of OrientDB, the first Multi-Model DBMS. ArcadeDB supports Vector Embeddings.
https://arcadedb.com
Apache License 2.0
469 stars 57 forks source link

HTTP/JSON API NullPointerException, if language parameter is missing #1603

Closed TheVamp closed 1 month ago

TheVamp commented 1 month ago

ArcadeDB Version:

OS and JDK Version:

Expected behavior

Actual behavior

Steps to reproduce

gramian commented 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)

gramian commented 1 month ago

Fixed by https://github.com/ArcadeData/arcadedb/commit/efbf896843024692c5fc38e05076b1eee9a7eb7c