[CalendarServer-changes] [9051] CalendarServer/trunk/twistedcaldav/scheduling/scheduler.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 13 10:28:46 PDT 2012


Revision: 9051
          http://trac.macosforge.org/projects/calendarserver/changeset/9051
Author:   cdaboo at apple.com
Date:     2012-04-13 10:28:45 -0700 (Fri, 13 Apr 2012)
Log Message:
-----------
Apply any RRULE truncation to iSchedule incoming iTIP messages.

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

Modified: CalendarServer/trunk/twistedcaldav/scheduling/scheduler.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/scheduler.py	2012-04-13 15:20:11 UTC (rev 9050)
+++ CalendarServer/trunk/twistedcaldav/scheduling/scheduler.py	2012-04-13 17:28:45 UTC (rev 9051)
@@ -905,12 +905,20 @@
         For data coming in from outside we need to normalize the calendar user addresses so that later iTIP
         processing will match calendar users against those in stored calendar data. Only do that for invites
         not freebusy.
+        
+        We also need to apply recurrence truncation here so the incoming iTIP's RRULE matches the truncated
+        version in any attendee calendar. This avoids a problem where the iTIP message appears to represent
+        a significant change as reported in schedule-changes property.
         """
 
         if not self.checkForFreeBusy():
             self.calendar.normalizeCalendarUserAddresses(normalizationLookup,
                 self.resource.principalForCalendarUserAddress)
 
+        # Apply recurrence truncation at this point
+        if config.MaxInstancesForRRULE != 0:
+            self.calendar.truncateRecurrence(config.MaxInstancesForRRULE)        
+
     def checkAuthorization(self):
         # Must have an unauthenticated user
         if self.resource.currentPrincipal(self.request) != davxml.Principal(davxml.Unauthenticated()):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120413/a81a40f3/attachment.html>


More information about the calendarserver-changes mailing list