Failing to add existing group to an existing account

Issue Description

When trying to add a group to an existing account on v0.16.8 via the Web UI or Stalwart CLI on a server that was migrated previously, it fails to add a group.

Expected Behavior

The group should be attached to the account, once saved.

Actual Behavior

Once an attempt to save the changes has been made, it returns an error on the Web UI, simply saying “Invalid value for object property”.

Reproduction Steps

These instructions imply that you already have a group and an account, that was migrated from v0.15.x.

  1. Navigate to Web UI → Directory → Accounts
  2. Select any account, and go to the Groups and Roles section
  3. Assign a new group to the account.

Stalwart CLI:

  1. Get the account ID & group account ID (stalwart-cli query Account)
  2. Update the account (stalwart-cli update Account [account-id] --field ‘memberGroupIds/[group-id]=true‘)

Stalwart Version

v0.16.x

Installation Method

Binary (Linux)

Database Backend

RocksDB

Blob Storage

S3-compatible

Search Engine

Internal

Directory Backend

Internal

I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

This has been fixed. A fix will be included in v0.16.9.