389 Commits

Author SHA1 Message Date
Andrew McMillan
b7c5bcee59 More OPTIONS by default. 2006-12-10 23:03:31 +13:00
Andrew McMillan
bd17bed542 Add in all of the properties for DAV an CalDAV, even if we don't reply
to them yet.
2006-12-10 22:47:41 +13:00
Andrew McMillan
1be3e5d320 Apparently it is OK to use REPORT on normal collections. 2006-12-10 22:39:27 +13:00
Andrew McMillan
e776477715 Cache control headers for RFC compliance. 2006-12-10 22:32:21 +13:00
Andrew McMillan
5511a89296 RFC compliance. 2006-12-10 22:31:23 +13:00
Andrew McMillan
eeca3c7203 Now with a language. 2006-12-10 22:19:46 +13:00
Andrew McMillan
5ae599c027 Some basic support for the getcontentlanguage property. 2006-12-10 22:18:38 +13:00
Andrew McMillan
be12d48c62 Ensure locale is set when using Basic Auth also. 2006-12-10 22:18:08 +13:00
Andrew McMillan
9904914d5a Don't attempt to parse the input as XML unless an XML header was explicitly
sent.
2006-12-10 21:12:28 +13:00
Andrew McMillan
bac02abded Add text/xml content types to this, which RFC2518 does specify. 2006-12-10 21:11:16 +13:00
Andrew McMillan
2aaffe45a8 Remove the headers from these tests, since ETag will vary from one run to
the next.
2006-12-10 20:27:41 +13:00
Andrew McMillan
7032ff8d7a Properly normalised tests. 2006-12-10 19:06:21 +13:00
Andrew McMillan
8e3265a52c Substitute all HTTP Standard format dates. 2006-12-10 19:06:00 +13:00
Andrew McMillan
91abc954ab Current regression test output. 2006-12-10 18:58:53 +13:00
Andrew McMillan
dfad00f938 Since we may not always get a creation date out of the iCalendar entry we
sometimes need to use the database creation time of the entry.
2006-12-10 18:56:49 +13:00
Andrew McMillan
e0d34558de Enforce ORDER on results. 2006-12-10 18:52:16 +13:00
Andrew McMillan
940e1d0460 Use summary for displayname of resources. 2006-12-10 18:31:22 +13:00
Andrew McMillan
ea1f786f69 Results for new PROPFIND on individual resource. 2006-12-10 16:41:48 +13:00
Andrew McMillan
9e2182cbb6 Changes to regression results as a result of date format fixes. 2006-12-10 16:41:25 +13:00
Andrew McMillan
facbb99318 PROPFIND now working for individual resources. 2006-12-10 16:22:09 +13:00
Andrew McMillan
88e39a02ff Remove redundant code checking value of user_no. 2006-12-10 15:34:55 +13:00
Andrew McMillan
380d980dc2 Ensure user_no on request is always valid. 2006-12-10 15:25:36 +13:00
Andrew McMillan
77f3e798ad Correct date formats for last modified and creation dates. 2006-12-10 14:41:50 +13:00
Andrew McMillan
152f174750 Add ACL check. 2006-12-10 14:23:55 +13:00
Andrew McMillan
a6d4c843d7 Working towards RFC2518 compliance. 2006-12-10 13:27:35 +13:00
Andrew McMillan
dc77328e45 Regression test for full properties of a resource. 2006-12-10 13:26:24 +13:00
Andrew McMillan
ddeea735f1 Remove debugging. 2006-12-10 12:57:51 +13:00
Andrew McMillan
cb9d2f928a Initial results for Spec based PROPFIND requests. 2006-12-09 22:48:50 +13:00
Andrew McMillan
1ecea41298 Pretend we support all of the DAV properties. 2006-12-09 22:47:26 +13:00
Andrew McMillan
f447c77553 Tests for failure (bogus unhandled properties) and success (Depth: inifinity)
for the PROPFIND.
2006-12-09 22:28:32 +13:00
Andrew McMillan
70090377bb Test for all DAV properties. 2006-12-09 22:24:36 +13:00
Andrew McMillan
cfdf6b073b Add support for creationdate property. 2006-12-09 22:04:39 +13:00
Andrew McMillan
d061c96198 Move handling of unsupported requests into CalDAVRequest 2006-12-09 21:56:18 +13:00
Andrew McMillan
8edb7a6b9d Might as well do the if statement in there as well. 2006-12-09 21:53:39 +13:00
Andrew McMillan
d0e9ade678 Er. And should be more working-ish now. 2006-12-09 15:55:16 +13:00
Andrew McMillan
03f5d6c0cc Add a function to call when we encounter an unsupported something in a request. 2006-12-09 15:54:03 +13:00
Andrew McMillan
6c50015eef Change to use 422 when we have an unsupported, but syntactically correct,
request.
2006-12-09 15:38:16 +13:00
Andrew McMillan
d937c7988e For now we will only support exclusive / write locks. 2006-12-09 15:36:48 +13:00
Andrew McMillan
424f8830ef Add status 422. 2006-12-09 15:35:29 +13:00
Andrew McMillan
72be8944ec Allow processing of supportedlock property to identify we can handle
exclusive write locks now.
2006-12-09 15:04:31 +13:00
Andrew McMillan
b38dfb190e Allow shared / read locks as well as exclusive / write. 2006-12-09 14:09:24 +13:00
Andrew McMillan
51ab4797aa Results for DELETE seem correct. 2006-12-09 12:24:24 +13:00
Andrew McMillan
0f120f0e00 Testing DELETE fails / succeeds on a locked object. 2006-12-09 11:25:09 +13:00
Andrew McMillan
e237b33516 OK. We now get our error message correctly! 2006-12-08 16:08:50 +13:00
Andrew McMillan
a786dc0610 We need XMLElement to deliver error reports about locks. 2006-12-08 16:05:08 +13:00
Andrew McMillan
24cf115b77 Initial PUT with LOCK results. 2006-12-08 16:03:18 +13:00
Andrew McMillan
7d3686524f Test for PUT failling / succeeding versus the lock. 2006-12-08 16:00:25 +13:00
Andrew McMillan
903df2857b Much simplification. 2006-12-08 15:15:40 +13:00
Andrew McMillan
3117696198 Renaming these to make more room for testing PUT/DELETE on locked resources. 2006-12-08 13:32:11 +13:00
Andrew McMillan
3352ef4baf Initial set of tests for LOCK / UNLOCK on collections. 2006-12-08 13:30:00 +13:00