mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
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>
This commit is contained in:
parent
822aab6850
commit
82615ce868
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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue