79 Commits

Author SHA1 Message Date
Andrew McMillan
4e5b824302 Make PUT processing use olson_from_tzstring(). 2011-09-13 13:12:35 +12:00
Rob Ostensen
a4523dc7dd don't deliver to the current user when scheduling 2011-09-10 11:22:11 +12:00
Andrew McMillan
9a5f021173 To better represent the line where errors occurred... 2011-09-10 09:09:14 +12:00
Andrew McMillan
4f01fe0a17 Add items to attendee's calendars as well as to their inboxes on PUT. 2011-09-10 00:17:27 +12:00
Andrew McMillan
14e59fa781 Changing signatures of the write_resource() function. 2011-09-08 23:27:44 +12:00
Andrew McMillan
3b76856b44 Refactor write_resource to accept a DAVResource rather than just a path. 2011-09-08 13:51:31 +12:00
Andrew McMillan
d78620398c Fix METHOD on scheduling request. 2011-09-08 09:40:47 +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
Andrew McMillan
7214c586ae Logging here should be as 'PUT', in general. 2011-08-26 01:03:53 +12:00
Andrew McMillan
06dcb0b166 Tidy up formatting. 2011-06-03 13:41:53 -07:00
Andrew McMillan
4a72ff16a3 Respond with 5.3; no Scheduling Support for user rather than 3.7
Also allow for this response when someone manually disables
the scheduling extensions support.
2011-05-17 00:21:08 +12:00
DAViCal Administrator
13fa85d8ab Only rollback if we are in a transaction. 2011-05-12 17:44:52 -04:00
Andrew McMillan
72baec50a7 Handle triggers that are after the thing they are related to.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-04-04 18:02:42 +12:00
Andrew McMillan
0f7e48ea17 When an import event has no UID we reluctantly assign one.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-04-01 18:01:46 +13:00
Andrew McMillan
ea42dac661 Fix bug in schedule status response where there is no authority.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-03-02 15:26:54 +01:00
Andrew McMillan
99fde69b39 Skip alarms with bogus trigger data.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-18 00:36:46 +13:00
Andrew McMillan
c7ae6826d8 Validate alarm date-time or duration before adding it to the DB.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-12 10:03:36 +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
5ff2f052c6 Add support for caching of feed, and uncaching on collection change.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-31 20:29:30 +13:00
Andrew McMillan
d615da9c55 Adjust comment wording for clarity.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-28 00:41:11 +13:00
Andrew McMillan
34a27d126d Refactor PUT functions to set modified/created dates more correctly.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:23:13 +13:00
Andrew McMillan
4876542537 Fix whitespace.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 12:46:00 +13:00
Andrew McMillan
066732a8a0 Add support for writing scheduling resources on PUT.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 15:55:19 +13:00
Andrew McMillan
74943cd243 Warn if we're being expected to log actions, but have no function. 2010-09-13 14:00:03 +12:00
Andrew McMillan
b381c0c7a4 Add optional parameter to 'simple' interface to allow action logging. 2010-08-18 21:34:20 +12:00
Andrew McMillan
f844d6b692 Add facility to append to a calendar with ?mode=append on PUT 2010-04-29 16:03:14 +12:00
Andrew McMillan
a359553eee When a timezone is supplied, but not used in the event, pretend it was.
This gets around some buggy software which expects this kind of
thing to work.
2010-04-28 14:08:14 +12:00
Andrew McMillan
8fbb5cf3a2 Don't complain if the event includes an unused timezone. 2010-04-26 23:27:15 +12:00
Andrew McMillan
3b7de13dbf Cope with Google occasionally setting the CREATED date to 0000 year.
Also set is_public explicitlt 't' or 'f'.
2010-04-03 17:31:06 +13:00
Andrew McMillan
e2f8ff8b0a Reorder if statement for better readability. 2010-03-29 21:54:04 +13:00
Andrew McMillan
061944f2c7 Need a space after each duration element for PostgreSQL. 2010-03-25 15:19:58 +13:00
Andrew McMillan
985338a1b6 Correct typo in attendee change to PUT-functions. 2010-03-24 12:55:28 +13:00
Andrew McMillan
9b3fb58b9f Handle duplicate attendee lines in one VEVENT. 2010-03-24 12:15:53 +13:00
Andrew McMillan
c080c8bc5e Fix untested scheduling code from Rob. New regression test results. 2010-03-24 08:12:58 +13:00
Rob Ostensen
a2438cef3d actually follow draft spec section 6.4, deliver event with scheduling status to users inbox 2010-03-23 22:05:03 +13:00
Andrew McMillan
f3f846e47e Explode out Attendees and Alarms on PUT/import collection too. 2010-03-23 21:10:37 +13:00
Andrew McMillan
5fafce0f0c Now parsing out VALARM components on PUT. 2010-03-22 17:21:33 +13:00
Andrew McMillan
688d540cc5 Add support for PUT on individual resources within a bind. 2010-03-18 20:02:13 +13:00
Andrew McMillan
53240804cc Add $c->skip_bad_event_on_import configuration setting.
This will allow failure on import of collections to apply only
to an individual event, rather than failing the whole collection.
2010-03-18 13:21:41 +13:00
Andrew McMillan
118df346de Migrate PUT-functions to AwlQuery. 2010-03-18 08:40:15 +13:00
Andrew McMillan
9f3deeb416 Fix uninitialised variable errors in new scheduling code. 2010-03-11 23:58:37 +13:00
Andrew McMillan
cef7ecf74d require_once on PgQuery now it's not common elsewhere. 2010-03-11 23:22:24 +13:00
Rob Ostensen
5d2123f385 oops, don't write to resources we don't have privileges to 2010-03-10 13:46:51 +13:00
Rob Ostensen
3efbddd9bd Scheduling extentions working with iCal 4 2010-03-10 13:46:42 +13:00
Andrew McMillan
03ff39fa33 With readonly_webdav_collections set we should write nothing!
We were writing collection records to the database when the
configuration setting readonly_webdav_collections was set, even
though the actual events would not be written.
2010-03-05 14:26:58 +13:00
Andrew McMillan
22e39493e7 Tweak 'we don't support this' response to scheduling requests. 2010-02-26 18:45:18 +13:00
Andrew McMillan
358c069b3e PUT Functions: add support for X-WR-CALNAME in uploaded calendars. 2010-02-17 23:51:16 +13:00
Andrew McMillan
865a2e499c Various changes preparing to switch PROPFIND implementation. 2009-11-12 00:39:18 +13:00
Andrew McMillan
3df6ccc4ba Getting 'MOVE' working has proven surprisingly complex. 2009-11-04 00:17:10 +13:00