-
-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Milestone
Description
ArcadeDB Version: 23.2.1 (build e8f512f/1677638572021/main)
JDK Version: openjdk 11.0.18 2023-01-17
OS: MacOS 12.6
User groups configured with the defaultDatabases setting seem not to take effect as it is not set in the config/server-users.jsonl.
This could be due to the group configuration missing from on-the-fly user creation here: https://github.com/ArcadeData/arcadedb/blob/main/server/src/main/java/com/arcadedb/server/ArcadeDBServer.java#L553 ?
Also, is the default group being assigned admin and not *? All tests seem only to test against admin and none against the default group, see ie:
- https://github.com/ArcadeData/arcadedb/blob/main/server/src/test/java/com/arcadedb/server/ServerReadOnlyDatabasesIT.java
- https://github.com/ArcadeData/arcadedb/blob/main/server/src/test/java/com/arcadedb/server/ServerDefaultDatabasesIT.java
Expected behavior
config/server-users.jsonl contains:
{"name":"user","password":"Blabla","databases":{"test":["admin"]}}
Actual behavior
config/server-users.jsonl contains:
{"name":"user","password":"Blabla","databases":{"test":[]}}
Steps to reproduce
./bin/server.sh "-Darcadedb.server.rootPassword=arcadedb" "-Darcadedb.server.defaultDatabases=test[user:password:admin]"
Reactions are currently unavailable