Hello dear Davical team,
I have some problem with Davical 1.1.3.1 and Caldavzap 0.13 .
It is quite special but I try to explain.
We configured an ressource in davical "polwiss3" with some calendars
- polwiss3/arbeitszeiten_hiwis
- polwiss3/konferenzen
- ...
There is also some davical-user "hiwipol3" which has Write (full) access to
"polwiss3/arbeitszeiten_hiwis", but no access to the other calendars.
In Thunderbird Lightning, everything is working fine, since there we enter the whole calender URL.
Caldavzap is configured like:
var globalNetworkCheckSettings={href: 'https://DAVICAL_SERVER/davical/caldav.php/', additionalResources: ['polwiss3', ... ], forceReadOnly: null, settingsAccount: true, timeOut: 30000, lockTimeOut: 10000, delegation: true, backgroundCalendars: [], ignoreAlarms: true}
As I figured out, caldavzap is doing a PROPFIND to https://DAVICAL_SERVER/davical/caldav.php/polwiss3 with credentials of "hiwipol3".
The Problem is now:
1.
- if hiwipol3 has no "READ" access to the ressource "polwiss3", caldavzap is getting error:
"Error: [netFindResource: 'PROPFIND https://hiwipol3@DAVICAL_SERVER/davical/caldav.php/polwiss3/']: code: '403' status: 'error'"
(default privileges to polwiss3 I set to:
- Read Access Controls
- Read Current User's Access
- Read Free/Busy Information
- Scheduling: all the scheduling stuff enabled
)
2.
- if hiwipol3 has additionally read access to the ressource "polwiss3":
- I can enable the calendar polwiss3/arbeitszeiten_hiwis in caldavzap, but it is only READ_ABLE, not write-able like configurted
in davical
- If I try to enable "polwiss3/konferenzen" (hiwipol3 has no access), caldavzap is hanging and is not loading any calendar
-> the second point may be a problem of caldavzap, I did not investigate this further
-> the first point I checked, it is coded at bottom of inc/caldav-PROPFIND.php
------------
/**
* Something that we can handle, at least roughly correctly.
*/
$responses = array();
if ( $request->IsProxyRequest() ) {
$response = add_proxy_response($request->proxy_type, $request->principal->dav_name() );
if ( isset($response) ) $responses[] = $response;
}
else {
$resource = new DAVResource($request->path);
if ( ! $resource->Exists() ) {
$request->PreconditionFailed( 404, 'must-exist', translate('That resource is not present on this server.') );
}
$resource->NeedPrivilege('DAV::read');
...
------------
Or is there a trick in configuration and I did something wrong?
Thanks,
Sebastian
--
Sebastian Kotthoff
Rechenzentrum
Universität Mannheim
B6, 23-29; Building B; Room 1.10
68159 Mannheim
Tel: +49 621 181 2516
Fax: +49 621 181 2682
I have some problem with Davical 1.1.3.1 and Caldavzap 0.13 .
It is quite special but I try to explain.
We configured an ressource in davical "polwiss3" with some calendars
- polwiss3/arbeitszeiten_hiwis
- polwiss3/konferenzen
- ...
There is also some davical-user "hiwipol3" which has Write (full) access to
"polwiss3/arbeitszeiten_hiwis", but no access to the other calendars.
In Thunderbird Lightning, everything is working fine, since there we enter the whole calender URL.
Caldavzap is configured like:
var globalNetworkCheckSettings={href: 'https://DAVICAL_SERVER/davical/caldav.php/', additionalResources: ['polwiss3', ... ], forceReadOnly: null, settingsAccount: true, timeOut: 30000, lockTimeOut: 10000, delegation: true, backgroundCalendars: [], ignoreAlarms: true}
As I figured out, caldavzap is doing a PROPFIND to https://DAVICAL_SERVER/davical/caldav.php/polwiss3 with credentials of "hiwipol3".
The Problem is now:
1.
- if hiwipol3 has no "READ" access to the ressource "polwiss3", caldavzap is getting error:
"Error: [netFindResource: 'PROPFIND https://hiwipol3@DAVICAL_SERVER/davical/caldav.php/polwiss3/']: code: '403' status: 'error'"
(default privileges to polwiss3 I set to:
- Read Access Controls
- Read Current User's Access
- Read Free/Busy Information
- Scheduling: all the scheduling stuff enabled
)
2.
- if hiwipol3 has additionally read access to the ressource "polwiss3":
- I can enable the calendar polwiss3/arbeitszeiten_hiwis in caldavzap, but it is only READ_ABLE, not write-able like configurted
in davical
- If I try to enable "polwiss3/konferenzen" (hiwipol3 has no access), caldavzap is hanging and is not loading any calendar
-> the second point may be a problem of caldavzap, I did not investigate this further
-> the first point I checked, it is coded at bottom of inc/caldav-PROPFIND.php
------------
/**
* Something that we can handle, at least roughly correctly.
*/
$responses = array();
if ( $request->IsProxyRequest() ) {
$response = add_proxy_response($request->proxy_type, $request->principal->dav_name() );
if ( isset($response) ) $responses[] = $response;
}
else {
$resource = new DAVResource($request->path);
if ( ! $resource->Exists() ) {
$request->PreconditionFailed( 404, 'must-exist', translate('That resource is not present on this server.') );
}
$resource->NeedPrivilege('DAV::read');
...
------------
Or is there a trick in configuration and I did something wrong?
Thanks,
Sebastian
--
Sebastian Kotthoff
Rechenzentrum
Universität Mannheim
B6, 23-29; Building B; Room 1.10
68159 Mannheim
Tel: +49 621 181 2516
Fax: +49 621 181 2682