[CalendarServer-changes] [8823] CalendarServer/trunk/twistedcaldav/sharing.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 6 15:25:16 PST 2012
Revision: 8823
http://trac.macosforge.org/projects/calendarserver/changeset/8823
Author: cdaboo at apple.com
Date: 2012-03-06 15:25:14 -0800 (Tue, 06 Mar 2012)
Log Message:
-----------
UIDs from the DB records are lower cased, so do lower case comparison.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/sharing.py
Modified: CalendarServer/trunk/twistedcaldav/sharing.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/sharing.py 2012-03-06 18:57:03 UTC (rev 8822)
+++ CalendarServer/trunk/twistedcaldav/sharing.py 2012-03-06 23:25:14 UTC (rev 8823)
@@ -115,7 +115,7 @@
principalUID = principalURL.split("/")[3]
record = yield self.invitesDB().recordForInviteUID(inviteUID)
- if record is None or record.principalUID != principalUID:
+ if record is None or record.principalUID.lower() != principalUID.lower():
raise HTTPError(ErrorResponse(
responsecode.FORBIDDEN,
(customxml.calendarserver_namespace, "valid-request"),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120306/e37ba64e/attachment.html>
More information about the calendarserver-changes
mailing list