[CalendarServer-changes] [14796] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Mon May 18 05:51:46 PDT 2015


Revision: 14796
          http://trac.calendarserver.org//changeset/14796
Author:   cdaboo at apple.com
Date:     2015-05-18 05:51:46 -0700 (Mon, 18 May 2015)
Log Message:
-----------
PUTs on collections give 403's instead of 500's now.

Modified Paths:
--------------
    CalendarServer/trunk/requirements-dev.txt
    CalendarServer/trunk/twistedcaldav/resource.py
    CalendarServer/trunk/twistedcaldav/storebridge.py

Modified: CalendarServer/trunk/requirements-dev.txt
===================================================================
--- CalendarServer/trunk/requirements-dev.txt	2015-05-18 12:50:17 UTC (rev 14795)
+++ CalendarServer/trunk/requirements-dev.txt	2015-05-18 12:51:46 UTC (rev 14796)
@@ -8,4 +8,4 @@
 q
 tl.eggdeps
 --editable svn+http://svn.calendarserver.org/repository/calendarserver/CalDAVClientLibrary/trunk@14790#egg=CalDAVClientLibrary
---editable svn+http://svn.calendarserver.org/repository/calendarserver/CalDAVTester/trunk@14791#egg=CalDAVTester
+--editable svn+http://svn.calendarserver.org/repository/calendarserver/CalDAVTester/trunk@14795#egg=CalDAVTester

Modified: CalendarServer/trunk/twistedcaldav/resource.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/resource.py	2015-05-18 12:50:17 UTC (rev 14795)
+++ CalendarServer/trunk/twistedcaldav/resource.py	2015-05-18 12:51:46 UTC (rev 14796)
@@ -2375,6 +2375,14 @@
     def notifyChanged(self):
         return self._newStoreHome.notifyChanged()
 
+
+    def http_PUT(self, request):
+        """
+        Cannot PUT to existing collection.
+        """
+        return responsecode.FORBIDDEN
+
+
     # Methods not supported
     http_ACL = None
     http_COPY = None

Modified: CalendarServer/trunk/twistedcaldav/storebridge.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/storebridge.py	2015-05-18 12:50:17 UTC (rev 14795)
+++ CalendarServer/trunk/twistedcaldav/storebridge.py	2015-05-18 12:51:46 UTC (rev 14796)
@@ -450,6 +450,13 @@
         returnValue(CREATED)
 
 
+    def http_PUT(self, request):
+        """
+        Cannot PUT to existing collection. Use POST instead.
+        """
+        return FORBIDDEN
+
+
     @requiresPermissions(fromParent=[davxml.Unbind()])
     @inlineCallbacks
     def http_DELETE(self, request):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150518/5762caba/attachment.html>


More information about the calendarserver-changes mailing list