1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

dont test for UID conflict in MOVE

This commit is contained in:
Unrud 2018-11-03 21:11:54 +00:00
parent e0a2d20919
commit d0dac14f84

View file

@ -765,12 +765,6 @@ class Application:
return FORBIDDEN return FORBIDDEN
if to_item and environ.get("HTTP_OVERWRITE", "F") != "T": if to_item and environ.get("HTTP_OVERWRITE", "F") != "T":
return PRECONDITION_FAILED return PRECONDITION_FAILED
if (to_item and item.uid != to_item.uid or
not to_item and
to_collection.path != item.collection.path and
to_collection.has_uid(item.uid)):
return self._webdav_error_response(
"C" if tag == "VCALENDAR" else "CR", "no-uid-conflict")
to_href = posixpath.basename(to_path.strip("/")) to_href = posixpath.basename(to_path.strip("/"))
try: try:
self.Collection.move(item, to_collection, to_href) self.Collection.move(item, to_collection, to_href)