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

Cant remove event if recipient is null : exception #1541

Open
dominiquefournier opened this issue Feb 1, 2024 · 0 comments
Open

Cant remove event if recipient is null : exception #1541

dominiquefournier opened this issue Feb 1, 2024 · 0 comments

Comments

@dominiquefournier
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant