fix(caldav): allow VJOURNAL if no supported component set is specified

This is mandated by the RFCs.

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
pull/45786/head
Richard Steinmetz 2024-06-11 14:00:14 +07:00
parent 822aab6850
commit 82615ce868
No known key found for this signature in database
GPG Key ID: 27137D9E7D273FB2
2 changed files with 2 additions and 2 deletions

@ -755,7 +755,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
'uri' => $calendarUri,
'synctoken' => 1,
'transparent' => 0,
'components' => 'VEVENT,VTODO',
'components' => 'VEVENT,VTODO,VJOURNAL',
'displayname' => $calendarUri
];

@ -154,7 +154,7 @@ abstract class AbstractCalDavBackend extends TestCase {
$this->assertEquals(self::UNIT_TEST_USER, $calendars[0]['principaluri']);
/** @var SupportedCalendarComponentSet $components */
$components = $calendars[0]['{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set'];
$this->assertEquals(['VEVENT','VTODO'], $components->getValue());
$this->assertEquals(['VEVENT','VTODO','VJOURNAL'], $components->getValue());
$color = $calendars[0]['{http://apple.com/ns/ical/}calendar-color'];
$this->assertEquals('#1C4587FF', $color);
$this->assertEquals('Example', $calendars[0]['uri']);