[CMF-checkins] CVS: CMF/CMFCore - CookieCrumbler.py:1.18.10.2

Casey Duncan cvs-admin at zope.org
Thu Dec 4 16:58:21 EST 2003


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv9831/CMFCore

Modified Files:
      Tag: CMF-1_4-branch
	CookieCrumbler.py 
Log Message:
Allow an existing cookie auth token to be used for DAV requests over the main HTTP port. Eliminates additional user challenges for browser-based DAV clients like MS WebFolders.


=== CMF/CMFCore/CookieCrumbler.py 1.18.10.1 => 1.18.10.2 ===
--- CMF/CMFCore/CookieCrumbler.py:1.18.10.1	Mon Apr 28 17:13:02 2003
+++ CMF/CMFCore/CookieCrumbler.py	Thu Dec  4 16:58:14 2003
@@ -104,7 +104,8 @@
         if req.__class__ is not HTTPRequest:
             return ATTEMPT_DISABLED
 
-        if not req[ 'REQUEST_METHOD' ] in ( 'HEAD', 'GET', 'PUT', 'POST' ):
+        if (req[ 'REQUEST_METHOD' ] not in ( 'HEAD', 'GET', 'PUT', 'POST' )
+            and not req.has_key(self.auth_cookie)):
             return ATTEMPT_DISABLED
 
         if req.environ.has_key( 'WEBDAV_SOURCE_PORT' ):




More information about the CMF-checkins mailing list