You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a PostgreSQL Directory.
Whenever i assign the built-in Administrator Role to a user, i am never able to remove it again. This also happens with freshly created users.
When removing the role from the account's permissions tab, it is not actually removed. After clicking "Save Changes" and again navigating to the account's permissions tab, the role is still assigned to the account.
The Log-Output does not change in between these "role-removal" attempts.
How can we reproduce the problem?
I can reproduce the problem by doing the following steps:
directory.internal.store = "postgres-local"directory.internal.type = "internal"store.postgres-local.compression = "lz4"store.postgres-local.database = "stalwart"store.postgres-local.host = "127.0.0.1"store.postgres-local.password = "<REDACTED>"store.postgres-local.pool.max-connections = 10store.postgres-local.port = 5432store.postgres-local.purge.frequency = "0 3 *"store.postgres-local.query.domains = "SELECT 1 FROM emails WHERE address LIKE '%@' || $1 LIMIT 1"store.postgres-local.query.emails = "SELECT address FROM emails WHERE name = $1 AND type != 'list' ORDER BY type DESC, address ASC"store.postgres-local.query.expand = "SELECT p.address FROM emails AS p JOIN emails AS l ON p.name = l.name WHERE p.type = 'primary' AND l.address = $1 AND l.type = 'list' ORDER BY p.address LIMIT 50"store.postgres-local.query.members = "SELECT member_of FROM group_members WHERE name = $1"store.postgres-local.query.name = "SELECT name, type, secret, description, quota FROM accounts WHERE name = $1 AND active = true"store.postgres-local.query.recipients = "SELECT name FROM emails WHERE address = $1 ORDER BY name ASC"store.postgres-local.query.verify = "SELECT address FROM emails WHERE address LIKE '%' || $1 || '%' AND type = 'primary' ORDER BY address LIMIT 5"store.postgres-local.timeout = "15s"store.postgres-local.tls.allow-invalid-certs = falsestore.postgres-local.tls.enable = falsestore.postgres-local.type = "postgresql"store.postgres-local.user = "stalwart"
Version
v0.11.x
What database are you using?
PostgreSQL
What blob storage are you using?
PostgreSQL
Where is your directory located?
Internal
What operating system are you using?
Linux
Relevant log output
2025-05-04T22:53:41Z TRACE HTTP request body (http.request-body) listenerId = "https", localPort = 443, remoteIp = <REDACTED>, remotePort = 46960, contents = "", size = 0
2025-05-04T22:53:41Z TRACE Data store iteration operation (store.data-iterate) elapsed = 0ms
2025-05-04T22:53:41Z TRACE Data store iteration operation (store.data-iterate) elapsed = 0ms
2025-05-04T22:53:41Z TRACE Data store iteration operation (store.data-iterate) elapsed = 0ms
2025-05-04T22:53:41Z TRACE Data store iteration operation (store.data-iterate) elapsed = 0ms
2025-05-04T22:53:41Z TRACE Data store iteration operation (store.data-iterate) elapsed = 0ms
2025-05-04T22:53:41Z TRACE Data store iteration operation (store.data-iterate) elapsed = 0ms
2025-05-04T22:53:41Z TRACE HTTP response body (http.response-body) listenerId = "https", localPort = 443, remoteIp = <REDACTED>, remotePort = 46960, contents = "{"data":{"items":[{"id":66,"type":"individual","description":"Administrator","name":"admin","secrets":["otpauth:<REDACTED>","<REDACTED>"],"quota":0,"roles":["user","admin"]},{"id":3,"type":"individual","quota":0,"secrets":"<REDACTED>","emails":"<REDACTED>","roles":["user"],"description":"<REDACTED>","usedQuota":1687929,"name":"<REDACTED>"},{"id":2,"type":"individual","quota":524288000,"description":"<REDACTED>","memberOf":["<REDACTED>"],"usedQuota":44227297,"roles":["user","admin"],"secrets":"<REDACTED>","name":"<REDACTED>","emails":["<REDACTED>","<REDACTED>"]},{"id":8,"type":"individual","emails":["<REDACTED>","<REDACTED>","<REDACTED>"],"description":"<REDACTED>","name":"<REDACTED>","quota":0,"secrets":"<REDACTED>","roles":["user","admin"],"usedQuota":2676041},{"id":16,"type":"individual","name":"<REDACTED>","quota":0,"emails":"<REDACTED>","roles":["user","admin"]}],"total":5}}", code = 200, size = 1395
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
I am using a PostgreSQL Directory.
Whenever i assign the built-in Administrator Role to a user, i am never able to remove it again. This also happens with freshly created users.
When removing the role from the account's permissions tab, it is not actually removed. After clicking "Save Changes" and again navigating to the account's permissions tab, the role is still assigned to the account.
The Log-Output does not change in between these "role-removal" attempts.
How can we reproduce the problem?
I can reproduce the problem by doing the following steps:
Store / Directory Config:
Version
v0.11.x
What database are you using?
PostgreSQL
What blob storage are you using?
PostgreSQL
Where is your directory located?
Internal
What operating system are you using?
Linux
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: