Commit Graph
141 Commits
Author SHA1 Message Date
Andrew McMillan 85017681d0 More comprehensive fix for collections where sync_token does not compute. 2012-03-19 12:33:45 +13:00
Andrew McMillan f32ec4b704 Don't try and produce a sync_token for the root collection. 2012-03-19 12:31:54 +13:00
Andrew McMillan 2c40db7d7e Fix reference to collection->dav_name. 2012-03-19 12:23:12 +13:00
Andrew McMillan dfb82f9c81 Principals don't (yet) have a sync-token. 2012-03-17 21:49:28 +13:00
Andrew McMillan a96c609cb4 We should respond with sync-token if PROPFIND asks too. 2012-03-17 21:33:41 +13:00
Andrew McMillan 34cff0d299 Fix resource fetch from database. 2012-03-17 21:33:16 +13:00
Andrew McMillan e9e5073eb5 Implement support for 'Brief' header.
Also add VPOLL and VAVAILABILITY to list of supported components.
2012-01-31 09:23:59 -08:00
Andrew McMillan 7332b7820d Note in phpdoc that this is deprecated and what to use instead. 2011-12-03 14:20:12 +13:00
Rob Ostensen f7420b1a9b fix propfind depth:1 on bind to external url 2011-11-09 09:17:22 +13:00
Andrew McMillan d8d16c8ee9 Checkpoint the current code for scheduling on DELETE . 2011-11-02 01:30:45 +13:00
Andrew McMillan 10afabbeb9 Rationalise confidential event rewriting and fix $c->hide_alarm function. 2011-10-31 13:15:49 +13:00
Andrew McMillan 02b6d47082 Add the $c->hide_alarms functionality into DAVResource class. 2011-10-30 16:05:14 +13:00
Andrew McMillan 9e6c3cffe7 We need the DAVPrincipal module here in some situations. 2011-10-27 08:47:19 +13:00
Andrew McMillan 2fd4a95285 Force casting to text in case someone is using integer usernames. 2011-10-14 11:07:33 +13:00
Andrew McMillan 8e18449096 Updated MKCOL/MKCALENDAR to support setting a supported-calendar-component-set 2011-10-03 17:57:28 +02:00
Andrew McMillan f9ad324ba1 Adjustments to timezones representation in the database to support timezone protocol. 2011-09-17 23:40:04 +12:00
Andrew McMillan 13ce4c147a Add support for writing local scheduling requests on PUT.
In the new Scheduling Extensions for CalDAV the server is expected
to construct iCalendar METHOD:REQUEST invitations and put them into
the scheduling inbox for each (local) attendee.  This patch does
that, and hopefully breaks the back of implementing the full
scheduling extensions.
2011-09-07 23:40:28 +12:00
Rob Ostensen 6331c50003 initial support for remote url BINDing 2011-08-25 14:17:15 +12:00
Andrew McMillan 71831f8e5f This is not a todo item, it's a comment. 2011-06-03 13:39:20 -07:00
Andrew McMillan b301a36aca When sync-collection is asked for data, only return it if < 50 rows.
The resource data element is not *actually* allowed, per the spec, but
some clients do use it, and some servers do support it.  In the case
of an initial sync which requests it we don't want to send down a huge
response to an ill-considered client.
2011-05-13 14:54:28 +12:00
Andrew McMillan 5c728365e3 Nail final issue with resourcetypes since refactoring.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 00:04:20 +13:00
Andrew McMillan 51576df490 Obfuscate event data when reader only has read-free-busy permission.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 17:08:22 +13:00
Andrew McMillan 20ee255898 Refactor fetching of Principal records from database.
This is a significant refactoring, replacing the old getUserBy*()
functions with a new Principal class, and replacing the old
CalDAVPrincipal class with a new DAVPrincipal class which extends
the Principal class.

At this point all regression tests pass (again) but there could
well be issues for people who use alternative authenticators
such as LDAP, although I have endeavoured to resolve those
potential issues.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-03 10:16:43 +13:00
Andrew McMillan 4178ab4254 Add caching of collection reads
Also a special header is added for telling DAViCal to flush the
cache during regression testing etc.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:25:46 +13:00
Andrew McMillan ef2b2aea02 Improve docs on DAVResource::NeedPrivilege() method.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:24:51 +13:00
Andrew McMillan 6328126c04 GetProperty() now returns a clone() if it is an object. New url() method.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:43:57 +13:00
Andrew McMillan ab875b3038 Add principal-collection-set to standard responses for DAVResource. 2010-11-21 00:52:47 +13:00
Andrew McMillan 515a31bbc8 Add the ACL to the supported methods. 2010-11-06 19:02:55 +13:00
Andrew McMillan 4ef39d9d0b Only process to a resource in one place. Surround ETags with quotes. 2010-09-25 22:08:27 +12:00
Andrew McMillan 1e22e9a8a1 Provide correct getcontenttype property for addressbook resources. 2010-09-25 17:17:06 +12:00
Andrew McMillan 6d49488a7b Fix fetching of resource by path to work with addressbook resources also. 2010-09-24 12:14:05 +12:00
Andrew McMillan 7ab8a3a3bb Uncomment the addressbook-query report. 2010-09-14 13:51:28 +12:00
Andrew McMillan 1cfec15233 Allow setting of the bound location of this resource. 2010-09-02 22:19:49 +12:00
Andrew McMillan 82259f1e0e Add all/any option to NeedPrivilege method also. 2010-08-18 21:32:45 +12:00
Andrew McMillan 8aa84f9e6c Add option for explicit permission matching. 2010-06-29 23:51:42 +12:00
Andrew McMillan f2ebbda855 Add parameter for masking privilege output to only applicable set. 2010-06-28 09:31:35 +12:00
Andrew McMillan 60d7780b1d Rename the event() function to resource() since it might not be an event. 2010-06-23 22:08:19 +12:00
Andrew McMillan f1a1c2fa73 Add support for the addressbook-multiget REPORT. Untested. 2010-05-12 22:13:46 +12:00
Andrew McMillan 541525919f Logging addition, comment removal. 2010-03-25 14:59:10 +13:00
Andrew McMillan 184666892c Improved approach for reading parent collection. 2010-03-24 23:41:56 +13:00
Andrew McMillan 8db20b966f Handle resourcetypes regardless of XML format. 2010-03-20 01:05:05 +13:00
Andrew McMillan 00cce278ef Fix parent-set response on collections. 2010-03-19 10:31:55 +13:00
Andrew McMillan a1c720d92b Catch the privileges on resources via a bound ticket. 2010-03-18 20:01:24 +13:00
Andrew McMillan 8fc2a76cea Add support for resource-id and parent-set properties. 2010-03-18 13:21:19 +13:00
Andrew McMillan e8c6aa2abf Add an extra resourcetype to a binding to indicate it's a binding.
This is not in the spec, but makes things easier if you need
to know whether this is a binding or not.  You could also
request a parent-set property and thus know this too, but
we'll do this temporarily and decide if maybe it's a bad
idea later.
2010-03-18 10:44:55 +13:00
Andrew McMillan 65e6eb2eff GET now working with bound resources. 2010-03-15 14:55:06 +13:00
Andrew McMillan 4d674c4f92 Getting bindings to work as seamlessly as possible. 2010-03-15 00:31:16 +13:00
Andrew McMillan 0a1b3c2d59 All regression tests passing again with BIND for PROPFIND. 2010-03-14 12:16:12 +13:00
Andrew McMillan f78655e952 Fixing up various minor regressions after restructuring PROPFIND. 2010-03-14 01:48:55 +13:00
Andrew McMillan ed055722e9 Working BIND and PROPFIND of bound resources. 2010-03-14 00:22:43 +13:00