435 Commits

Author SHA1 Message Date
Andrew McMillan
10afabbeb9 Rationalise confidential event rewriting and fix $c->hide_alarm function. 2011-10-31 13:15:49 +13:00
Andrew McMillan
ce77dae043 Fail more gracefully on crap encoding input. 2011-10-07 08:27:02 +02:00
Andrew McMillan
5b921b3884 Test for 'deflate' content encoding. 2011-10-07 07:34:49 +02:00
Andrew McMillan
e913600c70 Switch calendar query to new getVCalendarRange() function.
This fixes various bugs in time-range handling.
2011-10-06 23:34:18 +02:00
Andrew McMillan
d1f0a1cc76 New & variously improved regression tests. 2011-10-06 11:10:02 +02:00
Andrew McMillan
8e18449096 Updated MKCOL/MKCALENDAR to support setting a supported-calendar-component-set 2011-10-03 17:57:28 +02:00
Andrew McMillan
323e6a3011 The final revision of the sync-collection report requires the token to be a URI.
We'll use a 'data' URI (like CalendarServer does) to jump through this
arbitrary hoop.
2011-10-03 16:29:11 +02:00
Andrew McMillan
c41f4071e4 Get rid of unsightly error due to removal of time_zone table. 2011-09-30 11:56:35 +02:00
Andrew McMillan
0feb4e23d5 Fix bug handling COUNT= with BYDAY=multiple and FREQ=WEEKLY 2011-09-28 13:35:29 +08:00
Andrew McMillan
e64f92ff86 Fix handling of BYMONTHDAY=-N in repeat rules.
It seems PHP's date::setDate function doesn't do what we want when
you hand it a negative integer so we need to override a little more
of it's behaviour.  We have to make sure that date::modify is not
called with a days greater than the month we might land in when we
add a number of months to it.
2011-09-28 05:21:31 +08:00
Andrew McMillan
6679e31862 Rename test result without spaces. 2011-09-27 12:12:22 +13:00
Andrew McMillan
2127c294a3 Various small fixes preparing for release.
Correct logic for auto-creating addressbook for new user.
Fix non-creation of default addressbook.
Fix principal/collection edit to allow write of no privileges.
Fix collection edit timezone list to use new table.
Update davical & libawl version in always.php.
Regression test changes with update to davical.sql.
2011-09-25 22:29:31 +13:00
Andrew McMillan
5f4b40a643 One more fix for timezone database changes. 2011-09-18 17:03:37 +12:00
Andrew McMillan
f9ad324ba1 Adjustments to timezones representation in the database to support timezone protocol. 2011-09-17 23:40:04 +12:00
Andrew McMillan
93b790cd52 Tests for open-ended time-range calendar-query. 2011-09-17 17:59:02 +12:00
Andrew McMillan
4e5b824302 Make PUT processing use olson_from_tzstring(). 2011-09-13 13:12:35 +12:00
Andrew McMillan
bdb360f082 Add support for the schedule-default-calendar-URL property. 2011-09-09 22:54:38 +12:00
Andrew McMillan
8b77885cac Add test of error response for a REPORT which is not supported. 2011-09-09 22:53:52 +12:00
Andrew McMillan
376c03c81a Correct handling of PUT with unreferenced VTIMEZONE 2011-09-07 23:55:49 +12:00
Andrew McMillan
d75f7c2b77 Changes to the format of dates in the <creationdate> tag. 2011-09-07 23:55:19 +12:00
Andrew McMillan
fa48854fbe Changes to the number of rows in the test DB. 2011-09-07 23:54:38 +12:00
Andrew McMillan
27deec06ac Test results including calendar-auto-schedule header as default. 2011-08-24 20:39:58 +12:00
Andrew McMillan
4bba200385 Add first cut implementation of principal-match report. 2011-05-18 23:39:46 +12:00
Andrew McMillan
aaa0908b1a Add new import test with UTF-8 and missing UID.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-04-03 21:35:49 +12:00
Andrew McMillan
39f9ac1cea Force line endings to consistent CRLF in GET.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-02-22 15:42:35 +13:00
Andrew McMillan
2b072fda13 Additional collection during regression testing.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-02-22 15:42:05 +13:00
Andrew McMillan
49a62c701b Expanded events moved recurrence-id.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-12 10:03:58 +13:00
Andrew McMillan
e28f200c5f Only add a recurrence-id if this is actually a repeating instance.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 11:55:35 +13:00
Andrew McMillan
23b8b84003 Changes due to updated handling of floating times
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 23:30:23 +13:00
Andrew McMillan
655e3bfdaf Updated dav_id's due to more events in test database.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 23:26:12 +13:00
Andrew McMillan
39c6d5e581 Correct regression test data reference. 2011-01-04 18:48:37 +13:00
Andrew McMillan
d5e0684ad6 Corrected results for spec fixes in expanded calendar-query.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 16:51:08 +13:00
Andrew McMillan
7d135d39fa Correct handling of floating events & BYYEARDAY.
Also some minor refactoring.  Regression tests for all NZ holidays
from 2005 to 2011 (only the calculatable ones for 2005-2008).

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 16:46:57 +13:00
Andrew McMillan
90c35ec385 Add another event into our testing.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:26:27 +13:00
Andrew McMillan
34a27d126d Refactor PUT functions to set modified/created dates more correctly.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:23:13 +13:00
Andrew McMillan
be71269331 Move test data into test.
Also added a DTSTAMP property to the data, which Chandler (at
least the very old version I was using when I did this testing
in the first place) omitted.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:22:30 +13:00
Andrew McMillan
b15fcb3f77 Refactoring of RRule-v2, which incidentally fixes a bug!
VALUE=DATE:YYYYMMDD dates should now work better, and all date
parsing is much more robust.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:41:52 +13:00
Andrew McMillan
84ab84329a New test for empty propfind request.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 15:55:57 +13:00
Andrew McMillan
ac190c7277 Fix bugs in previous commit. Plus regression tests for it.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-07 09:39:16 +13:00
Andrew McMillan
88c45e1e7b sync-collection results change with -04 alignment.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-11-30 12:39:46 +13:00
Andrew McMillan
5788a5b62d Changes to IDs due to minor regression process change. 2010-11-06 22:35:31 +13:00
Andrew McMillan
515a31bbc8 Add the ACL to the supported methods. 2010-11-06 19:02:55 +13:00
Andrew McMillan
6533a89b7e Change regression runner to look for sample data with tests. 2010-11-06 18:05:04 +13:00
Andrew McMillan
cd6a609ea2 Always grant 'DAV::read' privilege from principal to group members.
Some clients want to read the group principal before they're happy
to access the group's calendar collections.  This grants them the
DAV::read privilege so they can do that.

Also see: https://bugzilla.mozilla.org/show_bug.cgi?id=610087
2010-11-06 15:12:35 +13:00
Andrew McMillan
1fd83c54ca New tests, especially focused on expansion and privacy checks. 2010-10-09 09:22:43 -04:00
Andrew McMillan
a47f636392 Updated test results 2010-10-09 09:21:33 -04:00
Andrew McMillan
250c66e8d5 Move the first expanded REPORT test to a better name. 2010-10-07 18:27:20 -04:00
Andrew McMillan
d75b525cf4 Don't supply freebusy for 0-duration events. 2010-10-07 17:27:21 -04:00
Andrew McMillan
6c4e2de41b Another regression test for free/busy catching many events. 2010-10-07 15:47:25 -04:00
Andrew McMillan
2cb3b14f2a Add an event with a thoroughly bogus tzid to ensure we cope. 2010-10-07 15:39:32 -04:00