Skip to content

ArangoDriver.getAqlFunctions(String) does not uses the defaultDatabase setting #43

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
rwe17 opened this issue Jul 7, 2016 · 4 comments
Labels

Comments

@rwe17
Copy link

rwe17 commented Jul 7, 2016

There is a slight bug in the method ArangoDriver.getAqlFunctions() which causes that only the functions in the system database will be retrieved.

getAqlFunctions() delegates to method InternalAqlFunctionsDriverImpl.getAqlFunctions(String) which builds the request to retrieve the functions. And here is the bug:

HttpResponseEntity res = httpManager.doGet(createEndpointUrl(null, API_AQLFUNCTION + appendix));

In order to use the propper database this should be:
HttpResponseEntity res = httpManager.doGet(createEndpointUrl(configure.getDefaultDatabase(), API_AQLFUNCTION + appendix));

Thanks
Ralf

@mvollmary mvollmary added the bug label Jul 8, 2016
@mvollmary
Copy link

Thanks. Fixed in Version 3.0.1 (released today)

@antonsarov
Copy link

Sorry for poking around on a closed issue but can we merge (some) of the changes from e76fc06 also to the 2.7 branch? We are using 2.7.4 for now and just ran into this bug.

Best regards
Anton

mvollmary pushed a commit that referenced this issue Nov 25, 2016
@mvollmary
Copy link

Hi Anton,

no problem. I released version 2.7.5 today with several bugfixes (including this one).

Best regards
Mark

@antonsarov
Copy link

Thank you, Mark!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants