2095 Commits

Author SHA1 Message Date
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
a786dc0610 We need XMLElement to deliver error reports about locks. 2006-12-08 16:05:08 +13:00
Andrew McMillan
903df2857b Much simplification. 2006-12-08 15:15:40 +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
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
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
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
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
7f13003a14 Now handling LOCK + refresh LOCK on a calendar resource. 2006-12-06 13:52: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
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
Andrew McMillan
83e6f20e86 Consistency of XML response is probably a good idea. 2006-12-04 13:30:21 +13:00
Andrew McMillan
77066997af Add an IsCollection() test to the request. 2006-12-04 12:56:02 +13:00
Andrew McMillan
e4f10270b7 Use defined canonicalisation base URL. 2006-12-04 11:34:03 +13:00
Andrew McMillan
becfa15926 Starting work on LOCK. 2006-12-04 10:14:43 +13:00
Andrew McMillan
ef52ef8a22 We're going to start writing stuff in this pretty soon... 2006-12-03 23:32:25 +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
209bb99584 Since we're going to support the LOCK/UNLOCK methods we begin by pretending. 2006-12-03 23:15:30 +13:00
Andrew McMillan
8d9099b076 More E_NOTICE fixing. 2006-12-03 17:21:46 +13:00
Andrew McMillan
bd6bee3744 Correct reference to displayname field. 2006-12-02 11:56:39 +13:00
Andrew McMillan
28f4c87e36 One last variable name changed... 2006-12-02 11:54:55 +13:00
Andrew McMillan
c333daad88 One last variable referenced with the old name. 2006-12-02 11:53:26 +13:00
Andrew McMillan
40579515ee Assign, not append, to variable. 2006-12-02 11:53:06 +13:00
Andrew McMillan
f5fe854d9f Fix variable missing $. 2006-12-02 11:48:34 +13:00
Andrew McMillan
e9231ad8a9 Remove some E_NOTICE warnings. 2006-12-02 11:44:04 +13:00
Andrew McMillan
aed8875443 Remove some E_NOTICE warnings. 2006-12-02 11:43:36 +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
d3a71cd234 Return an honest set of OPTIONS in the normal case, and allow us to override
so we can see if clients will try and use the ones we don't support.
2006-12-02 00:08:42 +13:00
Andrew McMillan
1b8d5b7d15 Fix locale handling in subdirectory operation. 2006-11-30 22:07:50 +13:00