[CalendarServer-changes] [10753] CalendarServer/trunk/twistedcaldav/scheduling/implicit.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Feb 18 10:39:49 PST 2013


Revision: 10753
          http://trac.calendarserver.org//changeset/10753
Author:   cdaboo at apple.com
Date:     2013-02-18 10:39:49 -0800 (Mon, 18 Feb 2013)
Log Message:
-----------
Avoid generating an implicit error accounting file for a common client issue.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/scheduling/implicit.py

Modified: CalendarServer/trunk/twistedcaldav/scheduling/implicit.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/implicit.py	2013-02-18 18:24:45 UTC (rev 10752)
+++ CalendarServer/trunk/twistedcaldav/scheduling/implicit.py	2013-02-18 18:39:49 UTC (rev 10753)
@@ -1269,6 +1269,13 @@
         if oldcalendar is None:
             oldcalendar = self.organizer_calendar
             oldcalendar.attendeesView((self.attendee,), onlyScheduleAgentServer=True)
+            if oldcalendar.mainType() is None:
+                log.debug("Implicit - attendee '%s' cannot use an event they are not an attendee of, UID: '%s'" % (self.attendee, self.uid))
+                raise HTTPError(ErrorResponse(
+                    responsecode.FORBIDDEN,
+                    (caldav_namespace, "valid-attendee-change"),
+                    "Cannot use an event when not listed as an attendee in the organizer's copy",
+                ))
         differ = iCalDiff(oldcalendar, self.calendar, self.do_smart_merge)
         return differ.attendeeMerge(self.attendee)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130218/269674be/attachment.html>


More information about the calendarserver-changes mailing list