
andrew at morphoss
May 14, 2012, 1:31 AM
Post #3 of 3
(212 views)
Permalink
|
Thanks Frank, Both fixes have been applied to my tree now. Regards, Andrew. On Fri, 2012-04-27 at 17:35 +0200, Frank Steinberg wrote: > Hi Andrew, > > after a period of inactivity on this issue, today I tried again to use BIND for external calendars by two accounts on the same external URL. I found that something like this was needed to make it work somehow. > > salvator:/usr/share/davical/inc# diff -u caldav-GET.php-orig caldav-GET.php > --- caldav-GET.php-orig 2011-09-11 13:46:40.000000000 +0200 > +++ caldav-GET.php 2012-04-27 17:10:09.000000000 +0200 > @@ -16,6 +16,7 @@ > $dav_resource = new DAVResource($request->path); > $dav_resource->NeedPrivilege( array('urn:ietf:params:xml:ns:caldav:read-free-busy','DAV::read') ); > if ( $dav_resource->IsExternal() ) { > + require_once("external-fetch.php"); > update_external ( $dav_resource ); > } > > salvator:/usr/share/davical/inc# diff -u caldav-BIND.php-orig caldav-BIND.php > --- caldav-BIND.php-orig 2012-04-27 17:09:21.000000000 +0200 > +++ caldav-BIND.php 2012-04-27 17:31:01.000000000 +0200 > @@ -55,7 +55,7 @@ > $qry = new AwlQuery( ); > $qry->QDo('SELECT collection_id FROM collection WHERE dav_name = :dav_name ', array( ':dav_name' => '/.external/'. md5($href) )); > if ( $qry->rows() == 1 && ($row = $qry->Fetch()) ) { > - $dav_id = $row->dav_id; > + $dav_id = $row->collection_id; > } > else { > create_external ( '/.external/'. md5($href) ,true,false ); > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Davical-general mailing list > Davical-general [at] lists > https://lists.sourceforge.net/lists/listinfo/davical-general > -- ------------------------------------------------------------------------ andrew (AT) morphoss (DOT) com +64(272)DEBIAN divorce, n: A change of wife. ------------------------------------------------------------------------
|