summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkhil <akhil.potukuchi@gmail.com>2023-02-24 11:02:24 +0530
committerAkhil <akhil@e.email>2023-02-26 21:27:37 +0530
commit9f9da964f678aed3276fb8f71c553253423a819c (patch)
tree8c09ef164bab2ddda1050e6bb445ec1cf1accc5e
parentb7bf29fd8c54e44efee3537c43c67a362f0756fe (diff)
downloadnextcloud-server-9f9da964f678aed3276fb8f71c553253423a819c.tar.gz
nextcloud-server-9f9da964f678aed3276fb8f71c553253423a819c.zip
Fix max instances exception for get vevent call
Signed-off-by: Akhil <akhil@e.email>
-rw-r--r--apps/dav/lib/CalDAV/Reminder/ReminderService.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/ReminderService.php b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
index a2daa3cc98e..aa1341b2fa1 100644
--- a/apps/dav/lib/CalDAV/Reminder/ReminderService.php
+++ b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
@@ -147,7 +147,14 @@ class ReminderService {
continue;
}
- $vevent = $this->getVEventByRecurrenceId($vcalendar, $reminder['recurrence_id'], $reminder['is_recurrence_exception']);
+ try {
+ $vevent = $this->getVEventByRecurrenceId($vcalendar, $reminder['recurrence_id'], $reminder['is_recurrence_exception']);
+ }
+ catch (MaxInstancesExceededException $e) {
+ $this->logger->debug('Recurrence with too many instances detected, skipping VEVENT', ['exception' => $e]);
+ continue;
+ }
+
if (!$vevent) {
$this->logger->debug('Reminder {id} does not belong to a valid event', [
'id' => $reminder['id'],