Commit 957c59aa authored by Jeffrey Shell's avatar Jeffrey Shell

Fixed collector bug 1943, raising an error if no if header exists in a

lock-refresh request.
parent 35acbc8a
......@@ -85,7 +85,7 @@
"""WebDAV support - resource objects."""
__version__='$Revision: 1.38 $'[11:-2]
__version__='$Revision: 1.39 $'[11:-2]
import sys, os, string, mimetypes, davcmds, ExtensionClass, Lockable
from common import absattr, aq_base, urlfix, rfc1123_date, tokenFinder, urlbase
......@@ -538,7 +538,8 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
RESPONSE.setBody(lock.asXML())
else:
# There's no body, so this likely to be a refresh request
if not ifhdr: RESPONSE.setStatus(412) # Precondition failed
if not ifhdr:
raise 'Precondition Failed', 'If Header Missing'
taglist = IfParser(ifhdr)
found = 0
for tag in taglist:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment