From 5494dd736ddac312154f1a43f449f849cd39b2f2 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 27 Apr 2022 17:17:22 +0200 Subject: Handle processing reminders for calendar objects with an infinite number of recurrences Closes #29896 Signed-off-by: Thomas Citharel --- apps/dav/lib/CalDAV/Reminder/ReminderService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/dav/lib/CalDAV/Reminder/ReminderService.php b/apps/dav/lib/CalDAV/Reminder/ReminderService.php index d6901cc4fb0..b33bc8a175a 100644 --- a/apps/dav/lib/CalDAV/Reminder/ReminderService.php +++ b/apps/dav/lib/CalDAV/Reminder/ReminderService.php @@ -44,6 +44,7 @@ use Sabre\VObject\Component\VEvent; use Sabre\VObject\InvalidDataException; use Sabre\VObject\ParseException; use Sabre\VObject\Recur\EventIterator; +use Sabre\VObject\Recur\MaxInstancesExceededException; use Sabre\VObject\Recur\NoInstancesException; use function strcasecmp; @@ -247,6 +248,10 @@ class ReminderService { // instance. We are skipping this event from the output // entirely. return; + } catch (MaxInstancesExceededException $e) { + // The event has more than 3500 recurring-instances + // so we can ignore it + return; } while ($iterator->valid() && count($processedAlarms) < count($masterAlarms)) { -- cgit v1.2.3