Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable24] fix(dav): catch MaxInstancesExceededException for recurring events without end date #36234

Closed
wants to merge 1 commit into from

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #36211

…hout end date

Ref nextcloud/calendar#4811

Signed-off-by: Anna Larch <anna@nextcloud.com>

$iterator->next();
}
} catch (MaxInstancesExceededException $e) {

Check failure

Code scanning / Psalm

UndefinedClass

Class, interface or enum named OCA\DAV\CalDAV\Reminder\MaxInstancesExceededException does not exist
}
} catch (MaxInstancesExceededException $e) {
// Using debug logger as this isn't really an error
$this->logger->debug('Recurrence with too many instances detected, skipping VEVENT', ['exception' => $e]);

Check failure

Code scanning / Psalm

UndefinedThisPropertyFetch

Instance property OCA\DAV\CalDAV\Reminder\ReminderService::$logger is not defined
'id' => $reminder['object_id'],
], $reminder['event_hash'], $alarmHash, true, false);
$this->writeRemindersToDatabase($alarms);
foreach ($event->VALARM as $valarm) {

Check notice

Code scanning / Psalm

PossiblyNullIterator

Cannot iterate over nullable var Sabre\VObject\Property|null
@tcitworld
Copy link
Member

If we backport this one to 24 we might as well do the same for #32191 as it will be encountered before.

@miaulalala
Copy link
Contributor

the exception doesn't exist for stable24

@miaulalala miaulalala closed this Jan 19, 2023
@ChristophWurst ChristophWurst deleted the backport/36211/stable24 branch January 19, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: caldav Related to CalDAV internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants