[Bug]: iMIP email replies are processed but attendee status is not updated for events in a writable shared calendar

オープン
#66,611 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, php
領域
api, backend

調査の方向性

The report does not name a file; start from the iMIP reply handling in the Calendar app's iTIP/Sabre scheduling code and the Mail app's iMIP processing, then trace where a METHOD:REPLY is matched to a calendar object owned by another user. Reproducing needs a shared writable calendar and an iMIP REPLY email, so setup is non-trivial. Done would be an attendee PARTSTAT updated to ACCEPTED in the shared calendar event, with a test covering that case.

索引モデルが issue の本文から書いたものです。

説明

0. Needs triage 35-feedback bug feature: caldav
Bug description

When a user creates an event in a calendar that is owned by another Nextcloud user and shared with write permissions, an external attendee can accept the invitation by replying from Microsoft Outlook via email. The reply is delivered to the event organizer's Nextcloud Mail account and is detected and marked as processed by Nextcloud Mail, but the attendee status in the calendar event remains NEEDS-ACTION.

This report is specifically about processing an incoming email-based iMIP METHOD:REPLY message. It is not about an external attendee clicking the accept link in the invitation email.

Setup
  • User A owns a calendar.
  • User A shares the calendar with User B with write permissions.
  • User B creates an event in that shared calendar.
  • User B is stored as the event ORGANIZER.
  • User B invites an external attendee by email.
  • The external attendee accepts in Microsoft Outlook using the normal calendar Accept action.
  • The iMIP reply arrives in User B's Nextcloud Mail account.
Steps to reproduce
  1. Share a calendar owned by User A with User B and grant write permissions.
  2. As User B, create an event in the shared calendar and invite an external email address.
  3. Accept the invitation from Microsoft Outlook using the normal Accept action, causing Outlook to send an email-based iMIP reply.
  4. Let Nextcloud Mail retrieve and process the reply.
  5. Check the attendee participation status in the original event.
Actual behavior
  • The reply email arrives in User B's Nextcloud Mail account.
  • The corresponding Mail database row is recognized as an iMIP message and marked processed, with no recorded iMIP error:
    • imip_message = 1
    • imip_processed = 1
    • imip_error = 0
  • However, the attendee remains PARTSTAT=NEEDS-ACTION in the calendar event and the UI continues to show "Waiting for response".
Expected behavior

The incoming email-based iMIP reply should be matched to the event created in the writable shared calendar, and the attendee's participation status should be updated to PARTSTAT=ACCEPTED.

Database evidence from a reproduction

The invitation record contains:

The corresponding calendar object is stored in the calendar owned by User A:

  • Calendar display name: Family
  • Calendar ID: 14
  • Principal URI: principals/users/<calendar-owner>

The stored event data contains:

ATTENDEE;PARTSTAT=NEEDS-ACTION:mailto:[email protected]
ORGANIZER:mailto:[email protected]

The actual mail database row for the reply was:

  • Mailbox ID: 30 (User B's mailbox)
  • Subject: Angenommen: Test 3
  • imip_message = 1
  • imip_processed = 1
  • imip_error = 0

Email addresses and identifiers above are anonymized in this report where appropriate.

Related issue

This may be related to #60230, which discusses external iTIP replies in writable shared calendars. However, that report and its maintainer discussion focus on an unauthenticated attendee accepting through the link in the invitation email. This report concerns a reply sent by Outlook via email (METHOD:REPLY) and processed by Nextcloud Mail.

Environment
  • Nextcloud Server: 35.0.2.2
  • Calendar app: 6.6.3
  • Mail app: 5.12.5
  • Deployment: Docker
  • Server platform: Raspberry Pi 5
  • External calendar client: Microsoft Outlook
  • Mail provider: STRATO
Additional notes

The same external attendee acceptance workflow works when the event is created by the owner of the calendar in their own calendar. The failure has been observed when the event is created by the user who has write access to another user's shared calendar.

The exact point at which the iMIP reply fails to update the calendar object is not yet known.

主要言語
PHP
スター
37.6k
フォーク
5.4k
平均マージ
1日 13時間
マージ済み PR(30日)
623

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/server のほかの issue

nextcloud/server の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。