Skip to content

createEdge returns "database not found" error #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mikub opened this issue Jul 3, 2015 · 1 comment
Closed

createEdge returns "database not found" error #19

mikub opened this issue Jul 3, 2015 · 1 comment

Comments

@mikub
Copy link

mikub commented Jul 3, 2015

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

a-brandt pushed a commit that referenced this issue Jul 3, 2015
@a-brandt
Copy link
Contributor

a-brandt commented Jul 3, 2015

I fixed the the function in 2.5.6-SNAPSHOT.

@a-brandt a-brandt closed this as completed Jul 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants