diff --git a/UnitTests/HttpInterface/api-database-spec.rb b/UnitTests/HttpInterface/api-database-spec.rb index 2801118b86..f1bf0b5797 100644 --- a/UnitTests/HttpInterface/api-database-spec.rb +++ b/UnitTests/HttpInterface/api-database-spec.rb @@ -210,13 +210,6 @@ describe ArangoDB do result["path"].should be_kind_of(String) result["isSystem"].should eq(false) - # retrieve user for new database - doc = ArangoDB.log_get("#{prefix}-create-current", "/_db/#{name}/_api/user/root") - doc.code.should eq(200) - result = doc.parsed_response - result["user"].should eq("root") - result["active"].should eq(true) - doc = ArangoDB.log_delete("#{prefix}-create-current", api + "/#{name}") doc.code.should eq(200) response = doc.parsed_response @@ -251,7 +244,7 @@ describe ArangoDB do result["isSystem"].should eq(false) # retrieve information about user "admin" - doc = ArangoDB.log_get("#{prefix}-create-users", "/_db/#{name}/_api/user/admin") + doc = ArangoDB.log_get("#{prefix}-create-users", "/_db/_system/_api/user/admin") doc.code.should eq(200) result = doc.parsed_response result["user"].should eq("admin") @@ -259,16 +252,12 @@ describe ArangoDB do result["extra"]["gender"].should eq("m") # retrieve information about user "foxx" - doc = ArangoDB.log_get("#{prefix}-create-users", "/_db/#{name}/_api/user/foxx") + doc = ArangoDB.log_get("#{prefix}-create-users", "/_db/_system/_api/user/foxx") doc.code.should eq(200) result = doc.parsed_response result["user"].should eq("foxx") result["active"].should eq(false) - # retrieve information about user "root" - doc = ArangoDB.log_get("#{prefix}-create-users", "/_db/#{name}/_api/user/root") - doc.code.should eq(404) - doc = ArangoDB.log_delete("#{prefix}-create-users", api + "/#{name}") doc.code.should eq(200) response = doc.parsed_response @@ -312,10 +301,6 @@ describe ArangoDB do result["path"].should be_kind_of(String) result["isSystem"].should eq(false) - # retrieve information about user "root" - doc = ArangoDB.log_get("#{prefix}-create-users-invalid", "/_db/#{name}/_api/user/root") - doc.code.should eq(404) - doc = ArangoDB.log_delete("#{prefix}-create-users-invalid", api + "/#{name}") doc.code.should eq(200) response = doc.parsed_response diff --git a/etc/arangodb3/arango-dfdb.conf.in b/etc/arangodb3/arango-dfdb.conf.in index 960089bb07..bf619cf945 100644 --- a/etc/arangodb3/arango-dfdb.conf.in +++ b/etc/arangodb3/arango-dfdb.conf.in @@ -8,7 +8,7 @@ directory= @LOCALSTATEDIR@/lib/arangodb3 [server] rest-server = false -authentication = false +authentication = true statistics = false # set number of threads to 1 so we don't have concurrency threads = 1 diff --git a/etc/arangodb3/arangobench.conf.in b/etc/arangodb3/arangobench.conf.in index 7e4eb500bb..5c6dfe0f28 100644 --- a/etc/arangodb3/arangobench.conf.in +++ b/etc/arangodb3/arangobench.conf.in @@ -5,4 +5,4 @@ progress = true [server] endpoint = tcp://127.0.0.1:8529 -authentication = false +authentication = true diff --git a/etc/arangodb3/arangodump.conf.in b/etc/arangodb3/arangodump.conf.in index 0161ce9801..8471d691ce 100644 --- a/etc/arangodb3/arangodump.conf.in +++ b/etc/arangodb3/arangodump.conf.in @@ -4,4 +4,4 @@ progress = true [server] endpoint = tcp://127.0.0.1:8529 -authentication = false +authentication = true diff --git a/etc/arangodb3/arangoimp.conf.in b/etc/arangodb3/arangoimp.conf.in index 441cd4ceec..d6231f9c00 100644 --- a/etc/arangodb3/arangoimp.conf.in +++ b/etc/arangodb3/arangoimp.conf.in @@ -2,4 +2,4 @@ [server] endpoint = tcp://127.0.0.1:8529 -authentication = false +authentication = true diff --git a/etc/arangodb3/arangorestore.conf.in b/etc/arangodb3/arangorestore.conf.in index 312b4abffa..b3566e8ee8 100644 --- a/etc/arangodb3/arangorestore.conf.in +++ b/etc/arangodb3/arangorestore.conf.in @@ -4,4 +4,4 @@ progress = true [server] endpoint = tcp://127.0.0.1:8529 -authentication = false +authentication = true diff --git a/etc/arangodb3/arangosh.conf.in b/etc/arangodb3/arangosh.conf.in index 1fea59e866..123d7f21a9 100644 --- a/etc/arangodb3/arangosh.conf.in +++ b/etc/arangodb3/arangosh.conf.in @@ -3,7 +3,7 @@ pretty-print = true [server] endpoint = tcp://127.0.0.1:8529 -authentication = false +authentication = true [javascript] startup-directory = @PKGDATADIR@/js diff --git a/js/actions/api-database.js b/js/actions/api-database.js index bff1669bec..dceb78eea7 100644 --- a/js/actions/api-database.js +++ b/js/actions/api-database.js @@ -50,7 +50,11 @@ function get_api_database (req, res) { if (req.suffix[0] === 'user') { // fetch all databases for the current user // note: req.user may be null if authentication is turned off - result = arangodb.db._databases(req.user); + if (req.user === null) { + result = arangodb.db._databases(); + } else { + result = arangodb.db._databases(req.user); + } } else if (req.suffix[0] === 'current') { if (cluster.isCoordinator()) { diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/templates/dashboardView.ejs b/js/apps/system/_admin/aardvark/APP/frontend/js/templates/dashboardView.ejs index 8a4e74b62c..e68eadce51 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/templates/dashboardView.ejs +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/templates/dashboardView.ejs @@ -147,7 +147,7 @@