mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
log failed attempts to set_dav_property
the path is not a known regular principal, collection, binding or resource
This commit is contained in:
parent
7e3a9a476f
commit
7f59b828d5
@ -224,7 +224,13 @@ foreach( $setprops AS $k => $setting ) {
|
||||
default:
|
||||
$qry->QDo('SELECT set_dav_property( :dav_name, :user_no::integer, :tag::text, :value::text)',
|
||||
array( ':dav_name' => $dav_resource->dav_name(), ':user_no' => $request->user_no, ':tag' => $tag, ':value' => $content) );
|
||||
$success[$tag] = 1;
|
||||
$result = $qry->Fetch();
|
||||
if ( $result->set_dav_property ) {
|
||||
$success[$tag] = 1;
|
||||
} else {
|
||||
dbg_error_log("ERROR", "failed to set_dav_property %s on %s to '%s'", $tag, $dav_resource->dav_name(), $content);
|
||||
add_failure('set', $tag, 'HTTP/1.1 403 Forbidden');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user