Skip to content

createEdge returns "database not found" error #19

Closed
@mikub

Description

@mikub

Method createEdge takes graphName as a first argument - however this argument is in fact used as a databaseName during rest call URL construction.
see InternalEdgeDriverImpl line 54:

HttpResponseEntity response = httpManager.doPost(createEndpointUrl(graphName, "/_api/edge"), params, body);

However createEndpointUrl method takes following parameters:

protected String createEndpointUrl(String database, Object... paths) throws ArangoException

Property graphName is here used as a database name (first argument) in the createEndpointUrl method call and will be placed in the generated URL that should have this format:

http://server:port/_db/<database-name>/_api/edge

Currently following URL is generated:

http://server:port/_db/<graph-name>/_api/edge

which will always result in 404 and "database not found" error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions