Andrew McMillan
a32d1f2ac2
Avoid unassigned variable warning.
2012-05-14 23:26:30 +12:00
Andrew McMillan
483683d3f6
Result ordering and other trivial regression test changes.
2012-05-14 23:26:12 +12:00
Andrew McMillan
a267a25165
Retry contacting LDAP server and fail with 503 if unavailable.
...
We can't call $request->DoResponse() at this point because we haven't
done all that stuff yet...
2012-05-14 22:57:52 +12:00
Andrew McMillan
724a549502
Fix thinko.
2012-05-14 22:26:17 +12:00
Andrew McMillan
2ca6093e44
Reduce unnecessary logging.
2012-05-14 21:03:54 +12:00
Andrew McMillan
45d1fd817e
Query efficiency fixes.
2012-05-14 21:03:42 +12:00
Andrew McMillan
054e25eac2
You need the library to do the external update.
2012-05-14 21:03:22 +12:00
Andrew McMillan
e88d22ec76
Improve query efficiency.
2012-05-14 21:02:58 +12:00
Andrew McMillan
6278dcb4ea
Bugfix replacing $row->dav_id with $row->collection_id and lots of whitespace fixes.
2012-05-14 21:02:38 +12:00
Andrew McMillan
47363b4f41
We should error 500 when we have an exception that isn't caught.
2012-05-14 20:54:43 +12:00
Frank Steinberg
0c582b9147
Attendees can only modify own event instance and own PARTSTAT on all attendees' instances. Lookup event upon incoming scheduling messages in ANY calendar, not just the default schedule calendar.
...
Hi,
this proposed patch does the following:
- When an attendee (not the organizer) modifies an object, these modifications should be applied completely to that user's instance of the object. However, the organizer's and other attendees' instances should not be modified in most aspects: Only the attendee's own PARTSTAT modification should be distributed to the organizer's and other attendees' instances. E.g. modifications on VALARMs or TRANSP settings are individual to that single user that sends the modification.
However, I have doubts whether the organizer should be able to apply such modifications on all attendees' instances, once they exist for other attendees. Currently, I did not yet change this behavior.
- When a user receives an invitation in his schedule-default-calendar, he might move it to another calendar. When a subsequent modification to the event arrives, another instance (with the same UID!), is created in the schedule-default-calendar. This patch makes the server search for an instance of the event in any of the receiving user's calendar, so that no event duplicates are created.
I am not really familiar with the code as a whole, so that the way I implemented these changes is probably not "correct".
Regards,
-frank
2012-05-07 09:30:03 +12:00
Andrew McMillan
5e195b151e
A function which can expand collections inside collections.
...
Including through bindings.
2012-05-05 23:00:28 +12:00
Andrew McMillan
b1256ecb6e
When a bind is made to an existing bind, bind to the target of that.
2012-05-05 22:57:43 +12:00
Andrew McMillan
f05063fedf
When logging failed anonymous access, don't crash and burn.
2012-05-05 17:02:22 +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
0d2ef3475d
Change the collection ids used in regression testing - modified results.
2012-05-05 16:57:05 +12:00
Andrew McMillan
24d51de757
Change the collection ids used in regression testing.
2012-05-05 16:50:08 +12:00
Andrew McMillan
77fae8cacc
A more efficient query for GET including sub-collections.
2012-05-03 20:29:49 +12:00
Andrew McMillan
4c41d63a56
Fix getctag replacement in this test.
2012-05-03 20:28:44 +12:00
Andrew McMillan
677513b49d
Current regression test results.
2012-05-03 19:12:42 +12:00
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