[CalendarServer-changes] [919]
CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/resource.
py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jan 4 16:38:51 PST 2007
Revision: 919
http://trac.macosforge.org/projects/calendarserver/changeset/919
Author: dreid at apple.com
Date: 2007-01-04 16:38:51 -0800 (Thu, 04 Jan 2007)
Log Message:
-----------
these shouldn't be 401s
Modified Paths:
--------------
CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/resource.py
Modified: CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/resource.py
===================================================================
--- CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/resource.py 2007-01-04 21:54:59 UTC (rev 918)
+++ CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/resource.py 2007-01-05 00:38:51 UTC (rev 919)
@@ -264,7 +264,7 @@
if authz:
if isSudoPrincipal(authz):
log.msg("Cannot proxy as another proxy: user '%s' as user '%s'" % (authid, authz))
- raise HTTPError(responsecode.UNAUTHORIZED)
+ raise HTTPError(responsecode.FORBIDDEN)
else:
authzPrincipal = self.findPrincipalForAuthID(authz)
@@ -275,13 +275,13 @@
else:
log.msg("Could not find authorization user id: '%s'" %
(authz,))
- raise HTTPError(responsecode.UNAUTHORIZED)
+ raise HTTPError(responsecode.FORBIDDEN)
else:
log.msg("Cannot authenticate proxy user '%s' without X-Authorize-As header" % (authid, ))
- raise HTTPError(responsecode.UNAUTHORIZED)
+ raise HTTPError(responsecode.BAD_REQUEST)
elif authz:
log.msg("Cannot proxy: user '%s' as '%s'" % (authid, authz,))
- raise HTTPError(responsecode.UNAUTHORIZED)
+ raise HTTPError(responsecode.FORBIDDEN)
else:
# No proxy - do default behavior
d = waitForDeferred(super(CalDAVResource, self).authorizationPrincipal(request, authid, authnPrincipal))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070104/dbcf7ce6/attachment.html
More information about the calendarserver-changes
mailing list