[CalendarServer-changes] [1857]
CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 10 10:15:56 PDT 2007
Revision: 1857
http://trac.macosforge.org/projects/calendarserver/changeset/1857
Author: dreid at apple.com
Date: 2007-09-10 10:15:56 -0700 (Mon, 10 Sep 2007)
Log Message:
-----------
Make sure we check that result is not empty before we try to access any of it's values otherwise we'll fail with an index error
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py
Modified: CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py 2007-09-10 16:43:54 UTC (rev 1856)
+++ CalendarServer/trunk/twistedcaldav/directory/appleopendirectory.py 2007-09-10 17:15:56 UTC (rev 1857)
@@ -126,6 +126,10 @@
[dsattributes.kDSNAttrGroupMembers,
dsattributes.kDSNAttrNestedGroups])
+ if not result:
+ log.err("Couldn't find group %s when trying to expand nested groups." % (groupGUID,))
+ continue
+
group = result.values()[0]
for GUID in self._expandGroupMembership(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070910/45f96a9f/attachment.html
More information about the calendarserver-changes
mailing list