Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
957c59aa
Commit
957c59aa
authored
Feb 08, 2001
by
Jeffrey Shell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed collector bug 1943, raising an error if no if header exists in a
lock-refresh request.
parent
35acbc8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+3
-2
No files found.
lib/python/webdav/Resource.py
View file @
957c59aa
...
...
@@ -85,7 +85,7 @@
"""WebDAV support - resource objects."""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment