mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Error correctly when the destination parent collection does not exist.
This commit is contained in:
parent
184666892c
commit
c3237407df
@ -34,6 +34,10 @@ if ( $dest->dav_name() == '/' || $dest->IsPrincipal() ) {
|
||||
$dest->NeedPrivilege('DAV::bind');
|
||||
}
|
||||
|
||||
if ( ! $dest->ContainerExists() ) {
|
||||
$request->DoResponse( 409, translate('Destination collection does not exist') );
|
||||
}
|
||||
|
||||
if ( ! $request->overwrite && $dest->Exists() ) {
|
||||
$request->DoResponse( 412, translate('Not overwriting existing destination resource') );
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user