23 Commits

Author SHA1 Message Date
Andrew McMillan
380d980dc2 Ensure user_no on request is always valid. 2006-12-10 15:25:36 +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
424f8830ef Add status 422. 2006-12-09 15:35:29 +13:00
Andrew McMillan
a786dc0610 We need XMLElement to deliver error reports about locks. 2006-12-08 16:05:08 +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
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
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
bb6185ff5f Allow a response with no message to be the default. 2006-12-06 19:32:19 +13:00
Andrew McMillan
7f13003a14 Now handling LOCK + refresh LOCK on a calendar resource. 2006-12-06 13:52:13 +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
Andrew McMillan
77066997af Add an IsCollection() test to the request. 2006-12-04 12:56:02 +13:00
Andrew McMillan
0091ee568b Take more notice of the headers we receive, especially ones that apply to
LOCK, UNLOCK.
2006-12-03 23:32:00 +13:00
Andrew McMillan
d3c4cc7f74 What a difference a 'y' makes! The DAV spec calls for 'infinite' rather
than 'infinity'.
2006-12-02 00:20:02 +13:00
Andrew McMillan
bfb93a06a9 Send an "X-RSCDS-Version" header in our response to assist with debugging. 2006-11-30 18:37:50 +13:00
Andrew McMillan
6a6f147f75 Converted PROPFIND to new request object. 2006-11-27 01:01:09 +13:00
Andrew McMillan
02be51d765 OPTIONS now working with new structure. 2006-11-27 00:29:23 +13:00
Andrew McMillan
b591115b72 New class to handle requests, so we can extract permissions in a better
way.  Of course this breaks all of the existing code, so don't use this
until I have all the regression tests passing again :-)
2006-11-27 00:16:01 +13:00