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

Abierto
#66,611 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, php
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
PHP
Estrellas
37.6k
Forks
5.4k
Merge medio
1 d 13 h
PR fusionados (30 d)
623

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nextcloud/server

Todos los issues de nextcloud/server

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.