[CalendarServer-changes] [3551] CalendarServer/branches/users/cdaboo/normalize-cuaddr-3531/ twistedcaldav/method/report_common.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Dec 19 06:46:24 PST 2008


Revision: 3551
          http://trac.macosforge.org/projects/calendarserver/changeset/3551
Author:   cdaboo at apple.com
Date:     2008-12-19 06:46:22 -0800 (Fri, 19 Dec 2008)
Log Message:
-----------
Handle empty/invalid ORGANIZER in freebusy data.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/normalize-cuaddr-3531/twistedcaldav/method/report_common.py

Modified: CalendarServer/branches/users/cdaboo/normalize-cuaddr-3531/twistedcaldav/method/report_common.py
===================================================================
--- CalendarServer/branches/users/cdaboo/normalize-cuaddr-3531/twistedcaldav/method/report_common.py	2008-12-19 02:03:10 UTC (rev 3550)
+++ CalendarServer/branches/users/cdaboo/normalize-cuaddr-3531/twistedcaldav/method/report_common.py	2008-12-19 14:46:22 UTC (rev 3551)
@@ -378,7 +378,7 @@
             # See if we have a UID match
             if (excludeuid == uid):
                 test_organizer = calendar.getOrganizer()
-                test_principal = calresource.principalForCalendarUserAddress(test_organizer)
+                test_principal = calresource.principalForCalendarUserAddress(test_organizer) if test_organizer else None
                 test_uid = test_principal.principalUID() if test_principal else ""
 
                 # Check that ORGANIZER's match (security requirement)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081219/a890ca0d/attachment.html>


More information about the calendarserver-changes mailing list