3037 Commits

Author SHA1 Message Date
Andrew McMillan
4907d6992e A default timezone if there is not one set in the PHP configuration. 2012-05-03 19:12:22 +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
33a84595a0 Merge 'Brief' header support into support for "Prefer: return-minimal"
Also reduce error noise from sending headers when output might already
have started, or trying to flush the output buffer when there isn't one.
2012-05-03 19:09:48 +12:00
Andrew McMillan
7f60277b83 Always default the timezone to something, even if the user did not. 2012-05-03 15:42:28 +12:00
Andrew McMillan
acc6c719f7 Simple changes for new XML processing. 2012-04-30 14:13:03 +12:00
Andrew McMillan
169b78efa6 Add log_caldav_action() hook on addressbook writes. 2012-04-30 13:27:34 +12:00
Andrew McMillan
3d694a301f If there are no instances ensure earliest_start still gets a value. 2012-04-30 13:27:25 +12:00
Andrew McMillan
9ee6f37d77 Make it possible to see output from /setup.php when DB is unavailable.
Also depends on some changes to AwlDbDialect/AwlQuery.
2012-04-22 10:01:40 +12:00
Daniel Aleksandersen
0d6d43560a Fix failing principal creation for new users using IMAP PAM
auth. Date format was not specified. Returned boolean TRUE
 instead of an actual date in the query.
2012-04-22 09:56:12 +12:00
Daniel Aleksandersen
ecbc9f6a4d Provide user feedback when php5-imap is missing. 2012-04-22 09:47:22 +12:00
Andrew McMillan
d2d12bbe04 Need $request globally in this function 2012-04-19 18:01:04 +12:00
Andrew McMillan
2115926b5d Correct response code for PROPPATCH and add support for Brief header. 2012-04-19 08:42:38 +12:00
Andrew McMillan
64cc138bc4 Handle modified which is just YYYYMMDDHHMMSS with no indication of datedness. 2012-04-18 23:49:59 +12:00
Andrew McMillan
b8b72d8470 Fix bug in "Edit" of existing grant. 2012-04-18 16:50:58 +12:00
Andrew McMillan
3afa91be85 Don't try and initialize gettext unless it's installed. 2012-04-18 16:46:32 +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
35ab0875a1 Remove davical upgrade log on package removal.
Fixes Debian Bug#668980
2012-04-17 09:26:42 +12:00
Andrew McMillan
8158eaa1ea Changes to the way PROPPATCH returns errors.
This is cleaner and perhaps a little more informative.
2012-04-16 12:57:16 +12:00
Andrew McMillan
beecb1674d Test result changes for previous commit. 2012-04-16 12:56:08 +12:00
Andrew McMillan
11cb332603 Make sure we increment the sync-token on PUT / DELETE. 2012-04-11 00:39:07 +12:00
Andrew McMillan
03b24c4d2f Don't log response for a 404 to reduce log noise. 2012-04-11 00:38:26 +12:00
Andrew McMillan
a34203a7b8 Sometimes we want the action hook to be post commit.
This adds another hook, and makes log_caldav_action() regular
across both PUT and DELETE (in a transaction), adding post_commit_hook()
as a method with the same signature which is called after the actual
commit, and also matches in both cases.
2012-04-10 23:30:07 +12:00
Andrew McMillan
e35db30a0d There are problems if this gets included twice, somehow. 2012-04-10 22:27:16 +12:00
Andrew McMillan
7a3f2c4744 Make it so that PUT of a calendar collection becomes a synchronisation.
We only write events which differ, and only delete events which aren't
present in the new upload.  If done in append mode then events which
already exist will be updated more cleanly too.
2012-04-06 14:03:55 +12:00
Andrew McMillan
c8cde4c3da Final fix to status code response. Add a debug flag to limit output. 2012-04-05 14:34:43 +12:00
Andrew McMillan
c6b95bc3f6 Do a bit_or() among multiple privilege settings. 2012-04-05 13:22:47 +12:00
Andrew McMillan
9ff16853b2 Properly calculate response code. 2012-04-04 23:15:22 +12:00
Andrew McMillan
b3c2c9db3c Extract HTTP response code for DELETE. Delete unused attribute, mark
httpResponseHeaders / httpResponseBody as protected.
2012-04-04 23:12:46 +12:00
Andrew McMillan
cfbb0bd6f3 Fix default URL for FindPrincipal() ensure If-Match etag is quoted. 2012-04-04 22:59:28 +12:00
Andrew McMillan
200b3a08dd Refactor checking of If-*-Match headers into a single place.
This also exposes and fixes a bug in PUT vcard where If-None-Match: "*"
was not being correctly processed.
2012-04-04 16:20:41 +12:00
Andrew McMillan
ea874375b6 Add phpdoc for the last change. 2012-04-04 12:11:28 +12:00
Andrew McMillan
2542d351cb A better way of achieving that last commit is to add a third parameter. 2012-04-04 12:06:17 +12:00
Andrew McMillan
631dbc67c3 Add a GetTodoByUid( $uid, $relative_url = '') method. 2012-04-04 12:04:37 +12:00
Andrew McMillan
f68823a5b2 Get rid of potential warning on early use of date() 2012-03-22 15:00:29 +13:00
Andrew McMillan
739d024305 Further regression test results changes from the caldav-proxy header. 2012-03-22 14:56:02 +13:00
Andrew McMillan
de0a010db7 As a result of some changes to when sync tokens first get created. 2012-03-22 14:15:49 +13:00
Andrew McMillan
6e02c08c44 Basic support for RFC5995 - Using POST to add collection members. 2012-03-22 14:10:43 +13:00
Andrew McMillan
f401bfcd9e A couple of common iCal4/iCal5 PROPFIND requests. 2012-03-22 14:09:28 +13:00
Andrew McMillan
81072fc8ed Better privilege checking on POST scheduling actions. 2012-03-22 14:08:59 +13:00
Andrew McMillan
09d8447951 Minor change to freebusy report test. 2012-03-22 14:05:34 +13:00
Andrew McMillan
ac6d040bd8 Fix a bug in GET on collections. 2012-03-22 14:05:06 +13:00
Andrew McMillan
dade978eb6 Slight header changes as a result of caldav proxy changes. 2012-03-22 13:55:03 +13: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
946e0719ef Changes to Depth handling. 2012-03-22 13:47:11 +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