-
-
Notifications
You must be signed in to change notification settings - Fork 86
Description
ArcadeDB Version: v22.11.1
JDK Version: openjdk 11.0.12 2021-07-20 LTS
OpenJDK Runtime Environment Corretto-11.0.12.7.1 (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.12.7.1 (build 11.0.12+7-LTS, mixed mode)
OS: CentOS release 6.9 (Final)
Expected behavior
the console allows connecting to a database stored in a non-default directory specified by the server.databaseDirectory (or GlobalConfiguration.SERVER_DATABASE_DIRECTORY) property.
Actual behavior
when connecting to a db stored in a non-default directory, the console cannot find it:
connect csrsdb
ERROR: Database './databases/csrsdb' not exists
The console adds a hard-coded "./databases" prefix to the path specified in the "connect" statement.
This can be easily verified by inspecting the "setRootPath(final String rootDirectory)" method of the Console class.
Also, "does not exist" would be more correct than "not exists"
Steps to reproduce
1 - start the server, setting the server.databaseDirectory property to a value different from the default and the arcadedb.server.defaultDatabases property to a valid database name
2 - start the console
3 - connect to the database