Commit Graph
114 Commits
Author SHA1 Message Date
Ján Máté 7a05f2b7d7 fixed uninitialized principal object for calendar-proxy-* queries 2014-04-27 17:26:35 +02:00
Ján Máté 6b37b2b422 fixed masking of confidential event components 2014-03-24 01:52:52 +01:00
Andrew McMillan 04ad1ac742 Fix typo. 2013-05-28 12:54:44 +12:00
Andrew McMillan 115676613d Only certain specific namespaces actually have database columns. 2013-05-23 13:28:54 +12:00
Andrew McMillan 584a52cb70 Quick workaround for iOS6 supported-calendar-component-set issue.
Adds a $c->default_calendar_components array of (VEVENT,VTODO,...)
2012-09-20 23:37:22 +12:00
Andrew McMillan 0a435d4f22 Fix debugging to error log. 2012-09-20 23:33:52 +12:00
Andrew McMillan 274f8dfa74 Sometimes we want to retrieve the sync-token as a result of a change we just made.
This allows a (default true) flag to indicate whether it's OK to use
a previously cached value.
2012-07-29 23:17:28 +12:00
Andrew McMillan d2513bddd5 Add workaround for Apple's POST add-member trainwreck. 2012-07-13 21:54:29 +12:00
Andrew McMillan 8fb0479015 supported-calendar-component-set uses dead properties too... 2012-07-13 12:30:34 +12:00
Andrew McMillan b4fd9e2ed2 Don't just return the first element in a dead property - there might be multiple! 2012-07-13 10:45:08 +12:00
Andrew McMillan 4f81556586 Use DeconstructURL rather than rawurldecode since it strips base_name components as well. 2012-07-09 01:17:46 +12:00
Andrew McMillan 1be5cd808a Another double-encoded field... 2012-07-09 01:17:21 +12:00
Andrew McMillan 2e19bbb535 Avoid double-encoding URLs. 2012-07-09 01:17:11 +12:00
Andrew McMillan ab95a487ea Correct current-user-principal reference. 2012-07-09 01:16:37 +12:00
Andrew McMillan c09ee6ff91 Some hrefs were not properly calling ConstructURL. 2012-07-08 11:59:02 +12:00
Andrew McMillan 2c12586a42 Ensure collection_id is set after we read the row. 2012-07-08 11:58:49 +12:00
Andrew McMillan d1c2179bbb Allow a user delegated write access to the principal to maintain it. 2012-06-11 19:43:05 +12:00
Andrew McMillan b32e2cc452 Fix storing / regurgitating of XML fragments in dead properties.
Requires updated AWL to match.
2012-05-20 21:41:32 +12:00
Andrew McMillan a32d1f2ac2 Avoid unassigned variable warning. 2012-05-14 23:26:30 +12:00
Andrew McMillan 58fe06586e When matching a URL and we have something without a trailing slash, it could also be a binding. 2012-05-05 17:01:40 +12:00
Andrew McMillan 155c70bba5 Changes to the way XML is created, and (to a lesser extent) parsed. 2012-05-03 19:11:28 +12:00
Andrew McMillan 7c15051f84 Further fixes to WebDAV synchronization.
This should be fully reliable now and also cleans out all sync
changes more than one week old.  update-database is needed to pull
the new function.
2012-04-17 15:44:09 +12:00
Andrew McMillan f55f8fbee3 Allow complete disabling of handling for Apple's old calendar-proxy.
We'll make this a default behaviour after 2012 is over and remove it
sometime after that.
2012-03-22 13:52:20 +13:00
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