1590 Commits

Author SHA1 Message Date
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
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
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
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
6e02c08c44 Basic support for RFC5995 - Using POST to add collection members. 2012-03-22 14:10:43 +13:00
Andrew McMillan
81072fc8ed Better privilege checking on POST scheduling actions. 2012-03-22 14:08:59 +13:00
Andrew McMillan
ac6d040bd8 Fix a bug in GET on collections. 2012-03-22 14:05:06 +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
Andrew McMillan
655f34aa27 Correct HTTP date formatting function. 2012-03-16 16:44:59 +13:00
Andrew McMillan
863b4ac87f Remove chance of unset variable warning. 2012-03-16 12:57:56 +13:00
Andrew McMillan
6c5f5157d6 Don't log 401 response since it's so frequent.
Also add a basic status/method/uri in front of each logged error.
2012-03-13 08:33:08 +13:00
Rob Ostensen
574aaf4465 Add the ability to override dns for iSchedule using a global variable $icfg 2012-03-12 16:35:53 +13:00
Andrew McMillan
af6cbc335a Fix reference to $domain should be $this->domain. 2012-03-12 13:18:28 +13:00
Andrew McMillan
e4d77756e6 Add $c->auto_refresh_duration option to set a auto refresh on any GET calendar. 2012-03-12 13:02:49 +13:00
Andrew McMillan
8d4dfb5d91 Handle HTTP date formatting for non-english locales (force English names). 2012-03-12 13:02:11 +13:00
Rob Ostensen
ff006ce319 verify required headers are signed 2012-03-12 12:38:49 +13:00
Rob Ostensen
db57e81b8d add disallowed header check and some comments 2012-03-12 12:38:42 +13:00
Rob Ostensen
e7afaef931 fix a few external BIND import bugs 2012-03-12 12:38:22 +13:00
Andrew McMillan
70222291c7 Formatting changes. 2012-03-02 08:57:38 +13:00
Andrew McMillan
df9a8a8911 Avoid variable not assigned warning. 2012-03-02 08:55:09 +13:00
Andrew McMillan
c36982c22f Fix bug introduced with iSchedule support. 2012-03-02 08:54:46 +13:00
Andrew McMillan
4e3cc98f39 Fix defaulting of Depth value for newer PHP versions. 2012-03-02 08:54:13 +13:00
Andrew McMillan
62cf11684d Split major functionality out of GET into it's own include. 2012-02-24 11:18:28 +13:00