mirror of https://gitee.com/bigwinds/arangodb
fixed download of AQL query results in web interface
This commit is contained in:
parent
166e41a512
commit
7367d3400b
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue