From: Stefan P. <st...@sy...> - 2014-08-30 18:39:23
|
Ok, tricky thing anyway: when I added the line to the config, it “solved” the problem of getting erros. However, the entries I added were not added to the collection :-( => not getting the error in the log was not really helping, anyway. Therefore, I used the patch that was discussed in a earlier mailing list item as well: diff --git a/htdocs/caldav.php b/htdocs/caldav.php index e52b09b..25a8fcb 100644 --- a/htdocs/caldav.php +++ b/htdocs/caldav.php @@ -112,10 +112,12 @@ switch ( $request->method ) { case 'HEAD': include('caldav-GET.php'); break; case 'PROPPATCH': include('caldav-PROPPATCH.php'); break; case 'POST': - if ( $request->content_type != 'text/vcard' && !$add_member ) { - include('caldav-POST.php'); - break; - } + if ( $request->content_type != 'text/vcard' && !$add_member ) { + include('caldav-POST.php'); + break; + } + error_log('the value of add_member is : ', $add_member); + $add_member = true; case 'PUT': switch( $request->content_type ) { case 'text/calendar': Adding this patch, plus removing the config item again makes things work for me. => now it seems I can work with: git clone from gitlab, plus the shown patch and a default config as shown in the wiki. That seems to work better, as I can synchronise addresses from one OSX to another iOS device. I loose abt. 10 out of 260 contacts in that synchronisation … Importing the contacts directly in the davical web gui helps not missing any contacts out in the collection … The patch seems to be a bit dangerous, as it just sets the value of $add_member = true; probably that value was meant to be evaluated by earlier processing … and is not correctly processed for Mac OSX anymore. can’t figure out where that could be, though. => I am not pushing that change to the master branch, as I am not sure what it might break. Best regards, Stefan. On 30 Aug 2014, at 16:42, Stefan Pielmeier <st...@sy...> wrote: > Hi, > > I am using davical directly from git, with the last commit being: > 2014-07-18 14:28 Jim Fenton [master] [origin/HEAD] [origin/master] Update downloading information > > my version of php is 5.3.2.1 > I get “all passed” on the Administration/Setup page, > except for the Davical version, there is written “could not retrieve “http://www.davical.org/current_davical_version?=1.1.2” > > Well all CalDAV functionality seems to work like a charm, much better than I experienced with Radicale. > Upgradeing and importing is really very well explained, the Status page and the web service interface are very good. > > I’d like to use CardDav as well with my recent iOS7 and Mac OSX devices for addresses, but that does not work well. After adding the address book account in OSX, giving user name, password and https://server:443/caldav.php/sp/contacts/ as details, I can try adding a entry in the address book, but my Apache error.log shows: > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: :Response status 403 for POST /caldav.php/sp/addressbook.vcs/?add-member > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: :***************** Response Header **************** > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: headers:-->X-Powered-By: PHP/5.3.2-1ubuntu4.26 > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: headers:-->Server: 1.1 > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.2; DB/1.2.11 > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: headers:-->Content-type: text/plain; charset="utf-8" > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: :******************** Response ******************** > [Sat Aug 30 16:19:41 2014] [error] [client 192.168.1.117] davical: LOG: response:-->PUT on a collection is only allowed for text/vcard content against an addressbook collection > > When I created the /caldav.php/sp/contacts/ collection, I selected “is an adressbook” and none of the other checkboxes. For Priviledges, I gave “ALL” privileges, so all checkboxes are checked in the large privilege selection; > > Furthermore, Mac OSX address book shows the following popup when clicking on the exclamation mark (indicating that the account is broken): [NSInvalidArgumentException] -[CoreDAVNullParser rootElement]: unrecognized selector sent to instance 0x608000217930 > > Is there anybody out there who knows how I can proceed? > > (by the way, I have carddav working with Radicale, so it seems I know how to configure iOS and MacOSX in general for carddav accounts; however, I really want to migrate all to calidav as Radicale is not stable on my system). > > Best regards from a rainy Aalborg, > Stefan. > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/_______________________________________________ > Davical-general mailing list > Dav...@li... > https://lists.sourceforge.net/lists/listinfo/davical-general |