37 Commits

Author SHA1 Message Date
Marten Gajda
ba13b8db46 Fix positive PROPPATCH response message body.
The response values must be inside a DAV:response element, which was missing before.
2015-07-24 14:39:05 +02:00
Christoph Anton Mitterer
8e60bb3124 set line endings of most text files to LF
* Changed the end-of-line encodings of all non-Windows-related and non-autogenerated text files to use UNIX LF (lots of them had mixed LF/CRLF).

Conflicts:
	inc/caldav-PUT-functions.php
2013-09-02 14:37:23 +12:00
Andrew McMillan
b32e2cc452 Fix storing / regurgitating of XML fragments in dead properties.
Requires updated AWL to match.
2012-05-20 21:41:32 +12:00
Andrew McMillan
155c70bba5 Changes to the way XML is created, and (to a lesser extent) parsed. 2012-05-03 19:11:28 +12:00
Andrew McMillan
2115926b5d Correct response code for PROPPATCH and add support for Brief header. 2012-04-19 08:42:38 +12:00
Andrew McMillan
8158eaa1ea Changes to the way PROPPATCH returns errors.
This is cleaner and perhaps a little more informative.
2012-04-16 12:57:16 +12:00
Andrew McMillan
9397b7dbcd Force casting of user_no to integer. 2012-02-05 09:42:32 -08:00
Andrew McMillan
b50b2d82ea Force output buffers to be flushed, if they're turned on.
If output buffering is turned on, PHP can be a bit slack about sending
the data to the client before closing the connection with exit(). These
changes ensure we call ob_flush() before we leave.  We call @ob_flush()
so we don't get noisy warnings when output buffering is off...
2011-11-02 18:43:10 +13:00
Andrew McMillan
160d87f5d2 PROPPATCH response should contain a propstat clause. 2011-10-20 12:21:42 +13: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
7a37beff80 Fix PROPPATCH behaviour on bound resources.
It is OK to modify dead properties on a bound resource as long as you
have permission on the folder containing the binding.  For active
properties we have special logic for modifying the displayname but all
others are refused.
2011-09-08 08:42:18 +12:00
Andrew McMillan
55398e3540 PROPPATCH is allowed on binds. 2011-08-25 14:15:37 +12:00
Andrew McMillan
4178ab4254 Add caching of collection reads
Also a special header is added for telling DAViCal to flush the
cache during regression testing etc.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:25:46 +13:00
Andrew McMillan
5ff2f052c6 Add support for caching of feed, and uncaching on collection change.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-31 20:29:30 +13:00
Andrew McMillan
c62dd43a30 Explicit typecast since values may not be text. 2010-03-21 22:01:09 +13:00
Andrew McMillan
40dd74447b Support schedule-calendar-transp property. 2010-03-20 01:06:48 +13:00
Andrew McMillan
005c7a2773 Fix PROPPATCH handling of CardDAV addressbook setting. 2010-03-18 20:27:56 +13:00
Andrew McMillan
4c9544c746 Can now apply arbitrary resourcetypes to collections. 2010-03-18 10:46:50 +13:00
Andrew McMillan
0f498af8d4 Fix handling of resourcetype changes. 2010-03-17 13:54:22 +13:00
Andrew McMillan
54ed058c2d Add support for PROPPATCH displayname on a bind. Switch to AwlQuery. 2010-03-17 11:52:02 +13:00
Andrew McMillan
567ff944a0 Properly respond with <error> elements inside <responsedescription>
As specified in RFC3253 (WebDAV Versioning), section 1.6
2010-03-04 16:52:21 +13:00
Andrew McMillan
1711fb68aa Modification of protected properties should be a 403.
We might as well send an error response along with that, too.
2010-02-26 13:29:11 +13:00
Andrew McMillan
84c5fbea22 PROPPATCH: Setting properties on Principals now working. 2010-02-17 23:54:48 +13:00
Andrew McMillan
d09ac0d004 Deny setting of deprecated free-busy-set. 2009-12-24 20:36:50 +13:00
Andrew McMillan
f2b20bc191 Move caldav:calendar-timezone into the collection table. 2009-12-23 23:30:07 +13:00
Andrew McMillan
5ec4c33670 Remove case-folding of incoming XML. 2008-10-21 23:04:31 +13:00
Andrew McMillan
5c8cfa4031 Rename @package to davical. 2008-09-18 12:03:00 +12:00
Andrew McMillan
2cacc8aa1c Almost entirely switched to root-relative URLs now. 2007-11-25 13:31:35 +13:00
Andrew McMillan
96e579910b Use URL construction in PROPPATCH handling. 2007-11-25 13:03:41 +13:00
Andrew McMillan
51b45e71c8 Fix bug identified by PHP5. 2007-03-08 11:02:02 +13:00
Andrew McMillan
47de71b965 Touch up the list of read-only properties. 2006-12-21 22:26:23 +13:00
Andrew McMillan
58675d4982 Ensure full response in error. 2006-12-21 20:10:16 +13:00
Andrew McMillan
0b476f608d The PROPPATCH method now works for setting displayname and resourcetype
on collections, within reason, and for setting arbitrary properties in
the database.
2006-12-21 18:48:01 +13:00
Andrew McMillan
d83a03b37c Partially working PROPPATCH. 2006-12-21 01:01:48 +13:00
Andrew McMillan
a347233cab Much simpler start, using new XML structure framework. 2006-12-19 16:52:24 +13:00
Andrew McMillan
3d7fd51319 Commit a non-working checkpoint. 2006-12-18 18:41:18 +13:00
Andrew McMillan
0919a0b2fe Add a placeholder for the PROPPATCH command which I will now start working
on.
2006-11-19 12:06:05 +13:00