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

Ouverte
#66,611 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
22/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
javascript, php
Domaine
api, backend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
PHP
Étoiles
37.6k
Forks
5.4k
Merge moyen
1 j 13 h
PR mergées (30 j)
623

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de nextcloud/server

Toutes les issues de nextcloud/server

Issues similaires

Plus d'issues PHP

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.