Calendar sharing not working

Issue Description

When I have a user account
And I share my calendar with an admin account
Then the calendar is not showing up in the admin account.

Expected Behavior

Calendar should show no matter the user role.

Actual Behavior

Calendar is not appearing in the admin account.

Reproduction Steps

  1. Create 2 users, 1 (system)admin, 1 user role.
  2. Share calendar from user with admin
  3. Sign in as admin and check calendars list.

Stalwart Version

v0.16.x

Installation Method

Docker

Database Backend

RocksDB

Blob Storage

RocksDB

Search Engine

Internal

Directory Backend

OIDC

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

Let me research calendar sharing functionality in Stalwart to provide a grounded answer.

I haven’t been able to pin this to a specific fault yet, so a few things would help. How was the calendar shared: a per-calendar ACL grant with the admin account as the sharee (via the web UI or CalDAV), or a role/permission grant? Shared calendars only surface once that grant lands in the recipient’s token, so did the admin account re-authenticate (or its DAV cache refresh) after the share was made? A stale token won’t carry the new grant.

Also, which client, and is the calendar missing in a raw PROPFIND against the admin’s calendar-home, or only in the client UI? One thing worth knowing: an admin account with the Impersonate permission takes a different branch in shared-container discovery than a normal user, so it’s useful to confirm whether the account you’re sharing to is a full admin. That will tell me whether this is a token/refresh issue or something specific to that admin path.

Not everything is clear to me. But I’ll try to answer what I know.

The client I use is bulwark (both web and native).

I have shared my calender with the admin account that was created during initial setup.

I do see the option in stalwart to select the account that shared with the admin account. But don’t see the calender.

I reported the same issue as well.

On my side, it also seems that calendar sharing doesn’t work even between two regular users (user role)

Report the issue to Bulwark first so they can diagnose the client/server interaction.