Skip to content

Cant remove event if recipient is null : exception #1541

Open
@dominiquefournier

Description

@dominiquefournier

I have an event were the recipient is null. I can not remove this event as an exception is raised.

After analysis, I create this patch to solve the problem :

--- vendor/sabre/dav/lib/CalDAV/Schedule/Plugin.php.ori	2024-02-01 20:17:06.509023419 +0100
+++ vendor/sabre/dav/lib/CalDAV/Schedule/Plugin.php	2024-02-01 20:16:53.136307540 +0100
@@ -414,6 +414,9 @@
 
         $caldavNS = '{'.self::NS_CALDAV.'}';
 
+        if (is_null($iTipMessage->recipient)) {
+            return;
+        }
         $principalUri = $aclPlugin->getPrincipalByUri($iTipMessage->recipient);
         if (!$principalUri) {
             $iTipMessage->scheduleStatus = '3.7;Could not find principal.';

I don't know how submit a PR, but I hope it will help you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions