From 15f68b211ffcf70a5b9e8955c5ed3e022b45d6bb Mon Sep 17 00:00:00 2001 From: Frank Celler Date: Fri, 3 Jun 2016 14:33:25 +0200 Subject: [PATCH 1/2] fixed get --- js/actions/_api/user/app.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/js/actions/_api/user/app.js b/js/actions/_api/user/app.js index f88d8e2006..9bfa1ac14a 100644 --- a/js/actions/_api/user/app.js +++ b/js/actions/_api/user/app.js @@ -36,11 +36,6 @@ function get_api_user(req, res) { return; } - if (req.suffix.length !== 1) { - actions.resultBad(req, res, arangodb.ERROR_HTTP_BAD_PARAMETER); - return; - } - var user = decodeURIComponent(req.suffix[0]); try { @@ -81,6 +76,8 @@ function get_api_config(req, res, key) { function get_api_user_or_config(req, res) { if (req.suffix.length === 0) { get_api_user(req, res); + } else if (req.suffix.length === 1) { + get_api_user(req, res); } else if (req.suffix.length === 2) { if (req.suffix[1] === "config") { get_api_config(req, res, null); From 1ec181a6756c015da424c6b3bdeefdad6e8254b7 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Fri, 3 Jun 2016 14:35:00 +0200 Subject: [PATCH 2/2] add missing include headers. --- lib/ProgramOptions/Translator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ProgramOptions/Translator.cpp b/lib/ProgramOptions/Translator.cpp index ad2e8463a4..4f86266c3a 100644 --- a/lib/ProgramOptions/Translator.cpp +++ b/lib/ProgramOptions/Translator.cpp @@ -21,7 +21,8 @@ //////////////////////////////////////////////////////////////////////////////// #include "Translator.h" - +#include "Basics/tri-strings.h" +#include "Basics/files.h" std::string arangodb::options::EnvironmentTranslator(std::string const& value) { if (value.empty()) { return value;