Commit Graph
1618 Commits
Author SHA1 Message Date
Andrew McMillan 395d14d85d Avoid using unassigned element. 2012-06-11 18:27:38 +12:00
Andrew McMillan 46addb00fd Fix some final niggles with setup.php and spurious logged errors. 2012-05-30 23:04:10 +12:00
Andrew McMillan 649be5b452 Add support for $c->hide_older_than to this report.
Based on a suggestion from Ján Máté.
2012-05-28 07:37:41 +12:00
Andrew McMillan 2808bab03b Simplify using GetPath() method. 2012-05-20 21:42:54 +12:00
Andrew McMillan cac1dd1fd0 Use fully namespaced tags. 2012-05-20 21:42:34 +12:00
Andrew McMillan 51e8ddd032 Use fully namespaced tag. 2012-05-20 21:42:19 +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 0070914394 Fix typo. 2012-05-19 10:00:33 +12:00
Andrew McMillan be5227f0ca Add support by Ján Máté for arbitrary collections to create on user creation. 2012-05-15 08:19:58 +12:00
Andrew McMillan 98fe8a9e19 Don't disable upload field. Use library to create 'append mode' field. 2012-05-15 00:21:35 +12:00
Andrew McMillan a32d1f2ac2 Avoid unassigned variable warning. 2012-05-14 23:26:30 +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 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 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 77fae8cacc A more efficient query for GET including sub-collections. 2012-05-03 20:29:49 +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 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 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