[CalendarServer-changes] [4790] CalendarServer/branches/users/cdaboo/deployment-partition-4722/ twistedcaldav/scheduling/ischedule.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 20 10:11:26 PST 2009
Revision: 4790
http://trac.macosforge.org/projects/calendarserver/changeset/4790
Author: cdaboo at apple.com
Date: 2009-11-20 10:11:24 -0800 (Fri, 20 Nov 2009)
Log Message:
-----------
Need to switch to using organizer for iSchedule originator header to avoid problem with delegate and
delegatees hosted on different nodes.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/deployment-partition-4722/twistedcaldav/scheduling/ischedule.py
Modified: CalendarServer/branches/users/cdaboo/deployment-partition-4722/twistedcaldav/scheduling/ischedule.py
===================================================================
--- CalendarServer/branches/users/cdaboo/deployment-partition-4722/twistedcaldav/scheduling/ischedule.py 2009-11-20 17:04:31 UTC (rev 4789)
+++ CalendarServer/branches/users/cdaboo/deployment-partition-4722/twistedcaldav/scheduling/ischedule.py 2009-11-20 18:11:24 UTC (rev 4790)
@@ -171,7 +171,13 @@
def _generateHeaders(self):
self.headers = Headers()
self.headers.setHeader('Host', utf8String(self.server.host + ":%s" % (self.server.port,)))
- self.headers.addRawHeader('Originator', utf8String(self.scheduler.originator.cuaddr))
+
+ # So iCal uses a delegate principal as the originator when a delegate does a POST on behalf of their
+ # delegatee. If the delegate and delegatee are hosted on different nodes that causes an authorization problem.
+ # Instead we substitute the ORGANIZER principal in here - this matches what happens with implicit scheduling where
+ # the originator is derived from the organizer.
+ self.headers.addRawHeader('Originator', utf8String(self.scheduler.organizer.cuaddr))
+
self._doAuthentication()
for recipient in self.recipients:
self.headers.addRawHeader('Recipient', utf8String(recipient.cuaddr))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20091120/e1ea3b52/attachment.html>
More information about the calendarserver-changes
mailing list