Registry Mirror
Skip to content

Conversation

@GVodyanov

Copy link
Copy Markdown
Contributor

Backport of #67006

Builds on #67192, please merge that one first. Until then, this diff also shows its commit.

Changes for this branch:

  • SystemAddressbook still reads the enumeration settings from IConfig here and doesn't have the later group-membership filtering of cards. The same changes are applied to this structure: federated cards get the read-only ACL, sync changes of the local address book are filtered with the same rules as its cards (new filterCardUrisForSessionUser()), sharing is rejected, its own properties aren't changed, and write-acl is dropped from its ACL. Like the existing code in this class, the new helper uses IConfig::getAppValue(), so the Psalm baseline gets the matching entries. The tests are written for this structure.
  • FederatedCalendar extends Calendar on this branch, so it gets the trash bin check through Calendar; FederatedCalendarTest doesn't exist here.
  • IShareManager::shareWithGroupMembersOnlyExcludeGroupsList() has no return type here, so the principal tests that reach it stub it.

Assisted by ClaudeCode:claude-opus-5-5

Writes into another user's calendar, such as iTIP delivery, replies
or edits in a shared calendar, recorded that calendar's sharees and
attendees as recently contacted by the writer. Only writes to the
writer's own calendars record interactions now.

Deleting an event purged invitation response links by UID alone, so
deleting any copy of an event, for example an attendee's, also
removed the organizer's links. Purges now only match invitations
sent by the calendar owner, and only for regular calendars. An
attendee's response links also stayed valid after the organizer
removed them, and replying through one added them back to the event.
Cancelling an attendee now revokes their links.

Additional email addresses counted as calendar user addresses even
before they were verified. Only verified ones count now. In the
provisioning API, editUserMultiValue() treated users editing their
own account like an admin edit and stored the new address as
verified, looked the new address up by the old value, and accepted
duplicates.

Not included: attendees removed occurrence by occurrence keep the
links of earlier occurrences, and invitations have no column linking
them to their calendar, which would make purges exact.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
Calendar and address book shares only checked that the sharee exists.
They now follow the same admin settings as the share dialog: the share
API toggle, excluded groups, group sharing, and sharing with group
members only together with its exclude list. Removing a share is
always allowed. Scheduling to principal: URIs applies the group
members restriction as mailto: already did.

With the trash bin enabled, a deleted calendar kept its shares, and the
share based lookups did not check deleted_at, so sharees and public
links kept using the calendar until it was purged. Only the owner sees
calendars in the trash bin now. Trashed objects are no longer served as
children of their calendar, only through the trash bin, and only the
owner can restore a deleted calendar.

The system address book is meant to be read-only, but cards built for
trusted servers had no ACL, its write-acl privilege allowed sharing it,
and property changes updated its shared row. Cards now get the
read-only ACL, sharing it is refused and existing share rows are
ignored, and properties are stored per account. Its sync applies the
same enumeration filter as listing it.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
@GVodyanov GVodyanov added 3. to review Waiting for reviews AI assisted labels Nov 30, 2026
@GVodyanov
GVodyanov requested a review from a team as a code owner November 30, 2026 11:03
@GVodyanov
GVodyanov requested review from CarlSchwan, ChristophWurst, DerDreschner and leftybournes and removed request for a team November 30, 2026 11:03
@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants