Skip to content

Rest API for document does not recognize DB name properly #1210

@mindreframer

Description

@mindreframer

ArcadeDB Version:

ArcadeDB Server v23.7.1 (build 3213507e324358b3d1af59654e8c3f02f9c894ad/1692053118580/main)

OS and JDK Version:

Running on Mac OS X 12.3.1 - OpenJDK 64-Bit Server VM 17.0.1

Expected behavior

Using http://localhost:2480/api/v1/document should work properly.

Actual behavior

arcadedb-23.7.1|⇒ curl -X POST http://localhost:2480/api/v1/document/school \
                           -d '{"@type": "Class", "name": "English", "location": "3rd floor"}' \
                           -H "Content-Type: application/json" \
                           --user root:playwithdata
{"error":"Internal error","detail":"Database \u0027school\u0027 is not available","exception":"com.arcadedb.exception.DatabaseOperationException"}⏎

Steps to reproduce

> create database school
> create document type Class
> insert into Class set name = 'English', location = '3rd floor';

<An SQL script to reproduce the problem or a JUnit test case will increase **A LOT** the chance to have a quick fix>

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions