1173 Commits

Author SHA1 Message Date
Andrew McMillan
a0ca0e27c7 Whoops: we weren't sending an ETag on PUT for non-Calendar resources. 2010-09-12 13:13:27 +12:00
Andrew McMillan
6115d90cbf [principal edit] Ensure the id is > 0 for us to fetch the record.
As well as causing an unsightly SQL error in the logs this was
actually crashing PHP in some cases.  Also we don't delete the
row unless the ID is > 1, to avoid deleting the admin user by
accident.
2010-09-11 22:50:29 +12:00
Andrew McMillan
19de9d3b01 [sync-collection report] Fix to work with bound collections.
The sync-collection report was looking for $request->CollectionID()
but this is not set for bound collections and we have to use
DAVResource methods to retrieve it.
2010-09-11 22:48:36 +12:00
Andrew McMillan
b673ec32e6 Ensure we get a duration, and default to 1 day if not. 2010-09-02 23:05:30 +12:00
Andrew McMillan
76768719c9 Handle a level of indirection in Binds of binds. 2010-09-02 23:04:35 +12:00
Andrew McMillan
c452f07e73 Try harder to get the right duration for an event. 2010-09-02 23:03:57 +12:00
Andrew McMillan
1cfec15233 Allow setting of the bound location of this resource. 2010-09-02 22:19:49 +12:00
Andrew McMillan
83059270d9 Wrap calendar-specific things for PROPFIND in an IsCalendar() test. 2010-08-31 19:22:32 +12:00
Andrew McMillan
9812e69807 Replaced by inc/freebusy-functions.php which is used everywhere. 2010-08-30 20:10:51 +12:00
Andrew McMillan
50fccc73d8 Working freebusy refactored to use a single core routine. 2010-08-30 18:55:23 +12:00
Andrew McMillan
3503f2f0fa Add support for weeks in durations.
Possibly weeks aren't standard, but I use one in my regression
tests historically.
2010-08-30 18:54:38 +12:00
Andrew McMillan
845db16c55 Switch event expansion to use vComponent.php rather than iCalendar. 2010-08-30 17:02:17 +12:00
Andrew McMillan
31400d3d7e Not the whole solution, but this is more correct than the other. 2010-08-30 17:00:26 +12:00
Andrew McMillan
a38c0e33cb Comments only. 2010-08-30 16:59:52 +12:00
Andrew McMillan
3300404912 Add a getUserByEMail() function. 2010-08-30 16:59:08 +12:00
Andrew McMillan
fa67ef987e Refactoring free/busy handling to a single core routine with RRule-2 2010-08-30 09:08:17 +12:00
Andrew McMillan
64f20edaab Coerce the content-type on PUT.
It seems that failing to correctly set the content-type header
on PUT is a common error.
2010-08-29 13:01:56 +12:00
Andrew McMillan
f0f708ec38 Add initial support for addressbook-query REPORT. 2010-08-28 22:17:06 +12:00
Andrew McMillan
7eaf94753c SQL style should not include a ';' on the end of the statement. 2010-08-24 14:45:16 +12:00
Andrew McMillan
25e8519b4b OPTIONS should be available to someone with any of the read permissions. 2010-08-24 14:44:41 +12:00
Andrew McMillan
cf15bf57e1 Suppress null value warnings. 2010-08-24 14:42:43 +12:00
Andrew McMillan
ef4a55a81b Order drop-down list of principals by displayname. 2010-08-18 21:36:52 +12:00
Andrew McMillan
eea5602c4c Allow principal-property-search(-set) REPORT requests on any URL. 2010-08-18 21:36:06 +12:00
Andrew McMillan
2898fb2b23 In -03 the response is renamed to 'response' rather than 'sync-response' 2010-08-18 21:35:02 +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
517b8d8d0f Correct parameter naming. 2010-08-18 21:33:32 +12:00
Andrew McMillan
9598cd9b8f Fix spelling error. 2010-08-18 21:33:14 +12:00
Andrew McMillan
82259f1e0e Add all/any option to NeedPrivilege method also. 2010-08-18 21:32:45 +12:00
Andrew McMillan
55cb133bb9 Apply some careful URL encoding. 2010-08-18 21:31:59 +12:00
Jens Zahner
f6fd2d39aa Fixes to LDAP group handling by Jens Zahner 2010-08-14 13:11:04 +12:00
Andrew McMillan
f816c6b56a Fix default locale. 2010-08-13 11:42:16 +12:00
Andrew McMillan
8aa84f9e6c Add option for explicit permission matching. 2010-06-29 23:51:42 +12:00
Andrew McMillan
e4e2a1fd47 Explicitly specify permissions matching. 2010-06-29 23:51:17 +12:00
Andrew McMillan
e3babd9845 Respond with supported-report error if the report is unsupported. 2010-06-29 23:50:41 +12:00
Andrew McMillan
0c64725ba2 Move to GPL v2 or later. 2010-06-29 23:50:11 +12:00
Andrew McMillan
4065f26da2 Default type to 'resource' for privileges display. 2010-06-29 23:49:16 +12:00
Andrew McMillan
22755fc766 Remove uninitialised variable possibility. 2010-06-29 23:48:43 +12:00
Andrew McMillan
f2ebbda855 Add parameter for masking privilege output to only applicable set. 2010-06-28 09:31:35 +12:00
Andrew McMillan
adb1f949ac Check for existence of target resource before we check for READ perm. 2010-06-28 08:41:46 +12:00
Andrew McMillan
766e825f99 Forece content-type in some circumstances.
If the method is REPORT or PROPFIND it won't be valid if they
didn't send XML, so assume they did, with a warning.

Otherwise, if the content-type is XML, but they sent less than
7 bytes, assume that it has no content-type.
2010-06-28 08:39:39 +12:00
Andrew McMillan
f644a31f9b Avoid potential unassigned variable warning. 2010-06-27 19:06:27 +12:00
Andrew McMillan
e7ad2ab06d Switch to 412 precondition failed in line with CardDAV RFC. 2010-06-27 19:03:56 +12:00
Andrew McMillan
2f38cf077b Don't allow PUT of non-calendar/address resources into calendars/addressbooks. 2010-06-27 18:56:17 +12:00
Andrew McMillan
50fca47f06 Correct return code on PUT modified. 2010-06-23 22:36:14 +12:00
Andrew McMillan
2643a1a34c Correct content-type. 2010-06-23 22:09:14 +12:00
Andrew McMillan
252dac585c Send a correct content-type on GET. 2010-06-23 22:08:57 +12:00
Andrew McMillan
60d7780b1d Rename the event() function to resource() since it might not be an event. 2010-06-23 22:08:19 +12:00
Andrew McMillan
2a18bb3b37 Rename variable since it is no longer just a calendar. 2010-06-23 14:38:56 +12:00
Andrew McMillan
f71bba3747 Work on making this work for CardDAV. 2010-06-23 14:22:26 +12:00
Andrew McMillan
5a708c5462 When we PUT a vcard set the caldav_type to VCARD. 2010-06-23 14:21:55 +12:00