Skip to content

User groups configured with setting defaultDatabases are not assigned #988

@gramian

Description

@gramian

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:

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]"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions