345 Commits

Author SHA1 Message Date
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
Andrew McMillan
e957cab57a More Chandler imitation changes with 0.7 Alpha4 2006-12-07 15:35:38 +13:00
Andrew McMillan
639584ab82 Working further through the Chandler imitation scripting. 2006-12-07 15:33:43 +13:00
Andrew McMillan
bf1fcb5d78 Remove some tcpdumps that shouldn't be in the source tree. 2006-12-07 15:33:06 +13:00
Andrew McMillan
4fcd9d8c0a Looks like collection locking got implemented along with resource locking. 2006-12-07 00:41:13 +13:00
Andrew McMillan
37ec5112f6 These now return a multi-status header. 2006-12-07 00:28:23 +13:00
Andrew McMillan
384d080a6d Fix response document structure. Return status 207 if we are returning a
potentially multstatus response document.
2006-12-07 00:17:27 +13:00
Andrew McMillan
d449e1f836 To avoid information loss we ensure people have a minimum of 'read' access
before we even _start_ looking for other kinds of errors.
2006-12-07 00:13:33 +13:00
Andrew McMillan
afb21fc415 Refactor to use new FailIfLocked method in CalDAVRequest. 2006-12-07 00:12:34 +13:00
Andrew McMillan
90ae126bd8 Another cut and paste error. Thank $%*&^ for regression tests :-) 2006-12-07 00:10:01 +13:00
Andrew McMillan
bab1820045 Fix typo. 2006-12-07 00:09:05 +13:00
Andrew McMillan
5f35d2ddce PUT will now return 200 OK for an update (and still 201 Created for new). 2006-12-06 23:49:56 +13:00
Andrew McMillan
0ce1039a42 Check for locks on PUT. 2006-12-06 23:47:58 +13:00
Andrew McMillan
19761d350d Whoops - fix regression. 2006-12-06 23:47:36 +13:00
Andrew McMillan
57e3d00448 No user_no column on locks, although perhaps there should be. 2006-12-06 23:42:56 +13:00
Andrew McMillan
55c2dd5ca4 Ensure locks are deleted along with any collection. 2006-12-06 23:21:58 +13:00
Andrew McMillan
a8f6660da7 Improve comments. 2006-12-06 23:21:41 +13:00
Andrew McMillan
2035717e14 Return false if there was no lock at all. 2006-12-06 23:11:11 +13:00
Andrew McMillan
1d256de4c4 Add function which will fail if a resource / collection is locked and will
return the appropriate error.
2006-12-06 23:10:34 +13:00
Andrew McMillan
9600b85001 Sync messages with current code. 2006-12-06 22:29:16 +13:00
Andrew McMillan
15ab1df291 We are now emulating the MKCOL and DELETE(collection) which Chandler is
doing, correctly.  This presumably means we should re test with Chandler
from this point...
2006-12-06 21:54:12 +13:00
Andrew McMillan
75443b08f4 Correct response codes per RFC2518. 2006-12-06 21:52:41 +13:00
Andrew McMillan
7fae773735 Correct response code per RFC2518 2006-12-06 21:50:49 +13:00
Andrew McMillan
ed65ec1294 Correct response code for normal behaviour per RFC2518. Write handling for
collections, since we now actually have such beasts.
2006-12-06 21:50:12 +13:00
Andrew McMillan
5e580d5e2a More shuffling around of the Chandler tests. 2006-12-06 20:51:37 +13:00
Andrew McMillan
9332534acd Updating some Chandler tests with review against 0.7alpha4 behaviour. 2006-12-06 20:42:40 +13:00
Andrew McMillan
9c069a3f1a More tests for LOCK / UNLOCK on resources. 2006-12-06 19:40:57 +13:00
Andrew McMillan
a722e11b56 Quiet a warning when our test doesn't have an associated query. 2006-12-06 19:34:45 +13:00
Andrew McMillan
a2a2883a42 Add support for UNLOCK of resources. 2006-12-06 19:32:41 +13:00
Andrew McMillan
bb6185ff5f Allow a response with no message to be the default. 2006-12-06 19:32:19 +13:00
Andrew McMillan
a57c043163 Normalise lock tokens before comparison. 2006-12-06 15:38:25 +13:00
Andrew McMillan
25bffa6b06 Make the charset on our content type consistent. 2006-12-06 15:36:25 +13:00
Andrew McMillan
d6c16bf31e Results for the first couple of regression tests for LOCK handling. 2006-12-06 15:35:35 +13:00
Andrew McMillan
df692d2535 Regression testing framework now with SQL query support. 2006-12-06 14:01:03 +13:00
Andrew McMillan
7f13003a14 Now handling LOCK + refresh LOCK on a calendar resource. 2006-12-06 13:52:13 +13:00
Andrew McMillan
ecc3b2cb06 Add dependency on libclass-dbi-pg-perl. 2006-12-06 07:02:13 +13:00
Andrew McMillan
dd31ac44c8 Correct copyright notice. 2006-12-06 00:24:13 +13:00
Andrew McMillan
52c231cb73 Correct copyright notice. 2006-12-06 00:23:53 +13:00
Andrew McMillan
f07abe02c1 Released version 0.5.2 2006-12-06 00:23:10 +13:00
Andrew McMillan
c010024ade Build properly from a different directory. 2006-12-06 00:22:47 +13:00
Andrew McMillan
7a4e8b7ec1 Ignore the wiki properly 2006-12-06 00:22:00 +13:00
Andrew McMillan
6c2f1846ec Pre-process the PHPdoc initialisation to make it more workable in another
build location.
2006-12-05 22:29:48 +13:00
Andrew McMillan
70372992cb The GET header should be plain text/calendar and not include a charset or
Evolution will break.
2006-12-05 15:15:46 +13:00
Andrew McMillan
9eff8f92ae As a basic checkpoint we are now creating a lock for a resource. 2006-12-05 00:51:41 +13:00
Andrew McMillan
0d66c9d9b7 More functions to support locking and lock discovery. 2006-12-04 15:57:06 +13:00