1198 Commits

Author SHA1 Message Date
Andrew McMillan
7f63f12e57 Better display of bindings. 2010-10-07 15:25:30 -04:00
Andrew McMillan
7a39329472 Fix warning when using basic authentication fallback. 2010-10-07 15:20:57 -04:00
Andrew McMillan
499313c9ca Fix handling of iCalendar durations containing negative elements. 2010-10-07 15:18:47 -04:00
Andrew McMillan
60fea594ae Handle events which don't have either DTEND *or* DURATION. 2010-10-07 14:20:35 -04:00
Andrew McMillan
04f17a65af Rewrite __construct() method of RepeatRuleDateTimeZone to be more robust. 2010-10-07 13:43:07 -04:00
Andrew McMillan
356a69e56f Rename 'Import Calendars' to 'Tools' since LDAP is more likely. 2010-09-25 22:32:04 +12:00
Andrew McMillan
7b18b3edc2 Only display internal paths for bindings. 2010-09-25 22:28:32 +12:00
Andrew McMillan
7e4364c803 If we get NULL for a new sync token reset so we sync everything. 2010-09-25 22:27:49 +12:00
Andrew McMillan
193c2bba13 Make 412 error response consistent with PUT-vcard. 2010-09-25 22:26:43 +12:00
Andrew McMillan
4ef39d9d0b Only process to a resource in one place. Surround ETags with quotes. 2010-09-25 22:08:27 +12:00
Andrew McMillan
89f28302dd Leave the quotes around the ETag we receive for comparison. 2010-09-25 22:07:21 +12:00
Andrew McMillan
b80dd10c7b Add a configuration option to use the older 'sync-response' tag.
When the WebDAV sync draft first came out the responses were each
contained in a DAV::sync-response tag, but by -03 this has changed
to a DAV::response tag since the format of the tag contents now
match this existing tag structure.

Unfortunately some client software in the wild depends on this
being a DAV::sync-response so the config option is needed to
interoperate with this software.
2010-09-25 17:18:54 +12:00
Andrew McMillan
1e22e9a8a1 Provide correct getcontenttype property for addressbook resources. 2010-09-25 17:17:06 +12:00
Andrew McMillan
5ebbb198e9 Allow basic auth to supply credentials as well. 2010-09-24 23:33:43 +12:00
Andrew McMillan
79f7347c2d Display the bindings a principal has access to, also. 2010-09-24 23:25:33 +12:00
Andrew McMillan
014df24621 Tweak message to use existing translation strings. 2010-09-24 12:41:04 +12:00
Andrew McMillan
d8d42ab383 Convert error responses to use CalDAVRequest::PreconditionFailed() 2010-09-24 12:35:50 +12:00
Andrew McMillan
6d49488a7b Fix fetching of resource by path to work with addressbook resources also. 2010-09-24 12:14:05 +12:00
Andrew McMillan
dd1d3903ff Make the sync report work with non-calendar resources. 2010-09-23 23:21:11 +12:00
Andrew McMillan
606375e6f1 [principal/collection edit] Add display of tickets and bindings. 2010-09-21 12:15:16 +12:00
Andrew McMillan
a46f8bf613 [collection-edit] Handle duplicate key error properly. Avoid SQL error on new. 2010-09-20 12:55:41 +12:00
Jim Hague
9469eb6d58 PAM - get user name from a comma-less passwd comment field.
PAM authentication uses a regular expression to extract the user's real
name from the 'user name or comment field' passwd file when creating a
new account.

The current regular expression assumes the comment field contains the
user name followed by a comma and some other comma-delimited information
(the Linux 'adduser' command adds room number, work phone, home phone
and 'other' info given half a chance).

If the field just contains the user name, there is no trailing comma
and the RE match fails. Make the trailing comma optional.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-09-17 14:06:23 +12:00
Andrew McMillan
7edefc3b15 [sync-caldav] When we PUT the request, save the request/response headers.
We do a HEAD if we didn't get the ETag back from the PUT, but the server
at the other end may have sent us a new location for the resource and
we'll need to handle that at a higher level, so we make sure to preserve
the original response from the PUT.
2010-09-14 13:52:27 +12:00
Andrew McMillan
7ab8a3a3bb Uncomment the addressbook-query report. 2010-09-14 13:51:28 +12:00
Andrew McMillan
74943cd243 Warn if we're being expected to log actions, but have no function. 2010-09-13 14:00:03 +12:00
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