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:
parent
e0a2d20919
commit
d0dac14f84
1 changed files with 0 additions and 6 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue