1
0
Fork 0

fixed download of AQL query results in web interface

This commit is contained in:
Jan Steemann 2014-11-04 01:31:12 +01:00
parent 166e41a512
commit 7367d3400b
3 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,10 @@
v2.3.0 (XXXX-XX-XX)
-------------------
* fixed non-working query results download in AQL editor of web interface
* removed debug print message in AQL query export routine
* fixed issue #1075: Aardvark: user name required even if auth is off #1075
The fix for this prefills the username input field with the current user's
@ -16,8 +20,8 @@ v2.3.0 (XXXX-XX-XX)
too.
v2.3.0-beta (2014-11-01)
------------------------
v2.3.0-beta1 (2014-11-01)
-------------------------
* added dedicated `NOT IN` operator for AQL

View File

@ -424,7 +424,6 @@ controller.get("/query/result/download/:query", function(req, res) {
var internal = require("internal");
query = internal.base64Decode(query);
internal.print(query);
try {
parsedQuery = JSON.parse(query);
}

View File

@ -304,7 +304,7 @@
var inputEditor = ace.edit("aqlEditor");
var query = inputEditor.getValue();
if (query !== '' || query !== undefined || query !== null) {
window.open(encodeURI("query/result/download/" + query));
window.open(encodeURI("query/result/download/" + btoa(JSON.stringify({ query: query }))));
}
else {
arangoHelper.arangoError("Query error", "could not query result.");