[CalendarServer-changes] [4131] CalendarServer/branches/exarkun/update-twisted-3816-3/lib-patches/ Twisted
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 1 10:30:02 PDT 2009
Revision: 4131
http://trac.macosforge.org/projects/calendarserver/changeset/4131
Author: exarkun at twistedmatrix.com
Date: 2009-05-01 10:30:01 -0700 (Fri, 01 May 2009)
Log Message:
-----------
re-instate r4024 and r4053
Added Paths:
-----------
CalendarServer/branches/exarkun/update-twisted-3816-3/lib-patches/Twisted/twisted.web2.auth.digest.patch
CalendarServer/branches/exarkun/update-twisted-3816-3/lib-patches/Twisted/twisted.web2.dav.resource.patch
Added: CalendarServer/branches/exarkun/update-twisted-3816-3/lib-patches/Twisted/twisted.web2.auth.digest.patch
===================================================================
--- CalendarServer/branches/exarkun/update-twisted-3816-3/lib-patches/Twisted/twisted.web2.auth.digest.patch (rev 0)
+++ CalendarServer/branches/exarkun/update-twisted-3816-3/lib-patches/Twisted/twisted.web2.auth.digest.patch 2009-05-01 17:30:01 UTC (rev 4131)
@@ -0,0 +1,22 @@
+Index: /home/exarkun/Projects/Twisted/branches/dav-take-two-3081-4/twisted/web2/auth/digest.py
+===================================================================
+--- /home/exarkun/Projects/Twisted/branches/dav-take-two-3081-4/twisted/web2/auth/digest.py (revision 26741)
++++ /home/exarkun/Projects/Twisted/branches/dav-take-two-3081-4/twisted/web2/auth/digest.py (working copy)
+@@ -158,6 +158,17 @@
+ algo, nonce, nc, cnonce, qop, self.method, uri, None
+ )
+
++ if expected == response:
++ return True
++
++ # IE7 sends cnonce and nc values, but auth fails if they are used.
++ # So try again without them...
++ # They can be omitted for backwards compatibility [RFC 2069].
++ expected = calcResponse(
++ calcHA1(algo, self.username, self.realm, password, nonce, cnonce),
++ algo, nonce, None, None, qop, self.method, uri, None
++ )
++
+ return expected == response
+
+ def checkHash(self, digestHash):
Added: CalendarServer/branches/exarkun/update-twisted-3816-3/lib-patches/Twisted/twisted.web2.dav.resource.patch
===================================================================
--- CalendarServer/branches/exarkun/update-twisted-3816-3/lib-patches/Twisted/twisted.web2.dav.resource.patch (rev 0)
+++ CalendarServer/branches/exarkun/update-twisted-3816-3/lib-patches/Twisted/twisted.web2.dav.resource.patch 2009-05-01 17:30:01 UTC (rev 4131)
@@ -0,0 +1,13 @@
+Index: /home/exarkun/Projects/Twisted/branches/dav-take-two-3081-4/twisted/web2/dav/resource.py
+===================================================================
+--- /home/exarkun/Projects/Twisted/branches/dav-take-two-3081-4/twisted/web2/dav/resource.py (revision 26741)
++++ /home/exarkun/Projects/Twisted/branches/dav-take-two-3081-4/twisted/web2/dav/resource.py (working copy)
+@@ -1888,7 +1888,7 @@
+ # If this is a collection and the URI doesn't end in "/", redirect.
+ #
+ if self.isCollection() and request.path[-1:] != "/":
+- return RedirectResponse(request.unparseURL(path=request.path+'/'))
++ return RedirectResponse(request.unparseURL(path=urllib.quote(request.path, safe=':/')+'/'))
+
+ def setHeaders(response):
+ response = IResponse(response)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090501/49b66bc2/attachment.html>
More information about the calendarserver-changes
mailing list