Open Bug 1738889 Opened 5 years ago Updated 2 months ago

iCalendar initial event reply contains SCHEDULE-AGENT=CLIENT in the ORGANIZER despite client side scheduling not being enabled

Categories

(Calendar :: E-mail based Scheduling (iTIP/iMIP), defect)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: pierre.alletru, Unassigned, NeedInfo)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Steps to reproduce:

1 - Add an account "A" to Thunderbird.
2 - Add a CalDAV calendar for that account with client side scheduling disabled (right click on calendar > Properties).
3 - Create an event on a Google Calendar account and invite the account A.
4 - Accept the invite on Thunderbird.

Actual results:

The event is successfully added to the calendar on Thunderbird, but no reply email is sent back to the organizer.

When inspecting the accept request payload, we find that the organizer contains "SCHEDULE-AGENT=CLIENT", which prevents the server from sending the reply, as instructed by RFC6638.

Example ORGANIZER line in the accept payload:

"ORGANIZER;CN=john.doe@gmail.com;SCHEDULE-AGENT=CLIENT:mailto:john.doe@gmail.com"

RFC6638 (https://datatracker.ietf.org/doc/html/rfc6638#section-3.2.2.3) extract:

"When a scheduling object resource is modified by an "Attendee", the server's behavior depends on the value of the "SCHEDULE-AGENT" iCalendar property parameter on the "ORGANIZER" iCalendar properties [...]
CLIENT The server does no special processing of the resource. The client is assumed to be handling any "Attendee" replies, etc."

Expected results:

Since client side scheduling is disabled on the calendar, the accept request should not contain "SCHEDULE-AGENT=CLIENT", thus letting the CalDAV server send a reply back to the organizer.

Tested on:

  • 78.13.0 Linux
  • 91.2.1 Windows

Note that the issue doesn't occur on further invite modifications. For instance if after the initial accept you then change that by a decline, that second request doesn't contain "SCHEDULE-AGENT=CLIENT" and the update is successfully sent back to the organizer.

Full payload sent from Thunderbird to the CalDAV server on the initial accept:

BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VEVENT
CREATED:20211102T103724Z
LAST-MODIFIED:20211102T103759Z
DTSTAMP:20211102T103759Z
UID:79mmj073ud0p7t36kh4ea2hm2f@google.com
SUMMARY:yeye
STATUS:CONFIRMED
ORGANIZER;CN=XXX.XXX@gmail.com;SCHEDULE-AGENT=CLIENT:mailto:XXX.
XXX@gmail.com
ATTENDEE;RSVP=TRUE;CN=XXX.XXX@gmail.com;PARTSTAT=ACCEPTED;CUTYPE=IN
DIVIDUAL;ROLE=REQ-PARTICIPANT;X-NUM-GUESTS=0:mailto:XXX.XXX@gmail.c
om
ATTENDEE;RSVP=TRUE;CN=YYYY@YYYY;PARTSTAT=ACCEPTED;CUTYPE=INDIVIDUAL;
ROLE=REQ-PARTICIPANT;X-NUM-GUESTS=0:mailto:YYY@YYYY
DTSTART:20211102T131500Z
DTEND:20211102T141500Z
X-MICROSOFT-CDO-OWNERAPPTID:1482740698
DESCRIPTION:-::::::::::::::::::::::::::::::::
::
:::::::::::-
Do not edit this section of the description.

This event has a video call.
Join: https://meet.google.com/cjy-scts-ymi

View your event at https://calendar.google.com/calendar/event?action=VI
EW&eid=NzltbWowNzN1ZDBwN3QzNmtoNGVhMmhtMmYgdGVzdEBwb3N0YWxlLmlv&tok=MjQjcG
llcnJlLmFsbGV0cnVAZ21haWwuY29tZDExM2I4NTcxODA0MzE4NTUyNDQ1MjAwY2NjNzk4Mjcy
NDE2MzY0Yw&ctz=Europe%2FParis&hl=en&es=1.
-::::::::::::::::
:::::::::::::::::::::::::::::-
X-LIC-ERROR;X-LIC-ERRORTYPE=VALUE-PARSE-ERROR:No value for LOCATION proper
ty. Removing entire property:
SEQUENCE:0
TRANSP:OPAQUE
X-MOZ-RECEIVED-SEQUENCE:0
X-MOZ-RECEIVED-DTSTAMP:20211102T103725Z
END:VEVENT
END:VCALENDAR

I see the same behaviour on Thunderbird 91.2.1 on Windows.

Below are the details about version and settings:

Application Basics

Name Thunderbird
Version 91.2.1
Build ID 20211020014537
Update Channel release
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1
OS Windows_NT 10.0 22000

Calendar Settings

Name Value
Name
Type caldav
Disabled false
Username
URI
Refresh Interval 15
Read-only false
Suppress Alarms false
Cache Enabled true
iMIP Identity id1
iMIP Disabled
iMIP Account
Organizer Id
Force Email Scheduling false
Popup Alarms Supported
Alarms on Invitation Supported
Max Alarms Per Event
Attachment Supported
Max Categories
Privacy State Supported
Priority Supported
Event Supported true
Task Supported true
Local Time Supported
UTC/GMT Supported
Auto-Scheduling Supported true
Component: Untriaged → General
Product: Thunderbird → Calendar
Version: 78 → unspecified
Component: General → E-mail based Scheduling (iTIP/iMIP)

This is reproduced in 102.0a1 (2022-05-06) (64-bit).

Now that Bug 1862400 is closed, does this affect the behaviour mentioned in this bug?

Flags: needinfo?(pierre.alletru)

(Note bug 1862400 is only on 135 so far, 128 uplift pending)

See Also: → 1862400

I am using 135b0.

The bug/behavior is still reproducible in version 140.7.0esr (32-bit).

Why hasn't this bug been fixed in four years, especially since the setting in the calendar properties ("prefer client-side email scheduling") already exists? It simply needs to be ensured that "SCHEDULE-AGENT=CLIENT" isn't sent when the checkbox isn't selected!

Or am I missing something?

Version: 140.9.1esr

Hey,

I'm seeing the same behavior.

My steps to reproduce are a bit different, but the path should be the same.

  • Connect TB to a caldav server
  • Invite Alice
  • Alice forwards the invitation to Bob
  • Bob accepts it (party crasher)
  • TB requests the calendar to use
  • And which identity should be used

Schedule-Agent Client is added by https://searchfox.org/comm-central/rev/e104b50a0bff1bba0dc3ba182f35ed3321d7066f/calendar/base/modules/utils/calItipUtils.sys.mjs#1580-1584

If you later update the same event, calls

https://searchfox.org/comm-central/rev/e104b50a0bff1bba0dc3ba182f35ed3321d7066f/calendar/base/content/dialogs/calendar-dialog-utils.js#581-583

which removes Schedule Agent and let the CalDAV sent the imip message out.

See Also: → 2072470
You need to log in before you can comment on or make changes to this bug.