71 Commits

Author SHA1 Message Date
Andrew McMillan
5c728365e3 Nail final issue with resourcetypes since refactoring.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 00:04:20 +13:00
Andrew McMillan
51576df490 Obfuscate event data when reader only has read-free-busy permission.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 17:08:22 +13:00
Andrew McMillan
20ee255898 Refactor fetching of Principal records from database.
This is a significant refactoring, replacing the old getUserBy*()
functions with a new Principal class, and replacing the old
CalDAVPrincipal class with a new DAVPrincipal class which extends
the Principal class.

At this point all regression tests pass (again) but there could
well be issues for people who use alternative authenticators
such as LDAP, although I have endeavoured to resolve those
potential issues.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-03 10:16:43 +13: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
ef2b2aea02 Improve docs on DAVResource::NeedPrivilege() method.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:24:51 +13:00
Andrew McMillan
6328126c04 GetProperty() now returns a clone() if it is an object. New url() method.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:43:57 +13:00
Andrew McMillan
ab875b3038 Add principal-collection-set to standard responses for DAVResource. 2010-11-21 00:52:47 +13:00
Andrew McMillan
515a31bbc8 Add the ACL to the supported methods. 2010-11-06 19:02:55 +13:00
Andrew McMillan
4ef39d9d0b Only process to a resource in one place. Surround ETags with quotes. 2010-09-25 22:08:27 +12:00
Andrew McMillan
1e22e9a8a1 Provide correct getcontenttype property for addressbook resources. 2010-09-25 17:17:06 +12:00
Andrew McMillan
6d49488a7b Fix fetching of resource by path to work with addressbook resources also. 2010-09-24 12:14:05 +12:00
Andrew McMillan
7ab8a3a3bb Uncomment the addressbook-query report. 2010-09-14 13:51:28 +12:00
Andrew McMillan
1cfec15233 Allow setting of the bound location of this resource. 2010-09-02 22:19:49 +12:00
Andrew McMillan
82259f1e0e Add all/any option to NeedPrivilege method also. 2010-08-18 21:32:45 +12:00
Andrew McMillan
8aa84f9e6c Add option for explicit permission matching. 2010-06-29 23:51:42 +12:00
Andrew McMillan
f2ebbda855 Add parameter for masking privilege output to only applicable set. 2010-06-28 09:31:35 +12:00
Andrew McMillan
60d7780b1d Rename the event() function to resource() since it might not be an event. 2010-06-23 22:08:19 +12:00
Andrew McMillan
f1a1c2fa73 Add support for the addressbook-multiget REPORT. Untested. 2010-05-12 22:13:46 +12:00
Andrew McMillan
541525919f Logging addition, comment removal. 2010-03-25 14:59:10 +13:00
Andrew McMillan
184666892c Improved approach for reading parent collection. 2010-03-24 23:41:56 +13:00
Andrew McMillan
8db20b966f Handle resourcetypes regardless of XML format. 2010-03-20 01:05:05 +13:00
Andrew McMillan
00cce278ef Fix parent-set response on collections. 2010-03-19 10:31:55 +13:00
Andrew McMillan
a1c720d92b Catch the privileges on resources via a bound ticket. 2010-03-18 20:01:24 +13:00
Andrew McMillan
8fc2a76cea Add support for resource-id and parent-set properties. 2010-03-18 13:21:19 +13:00
Andrew McMillan
e8c6aa2abf Add an extra resourcetype to a binding to indicate it's a binding.
This is not in the spec, but makes things easier if you need
to know whether this is a binding or not.  You could also
request a parent-set property and thus know this too, but
we'll do this temporarily and decide if maybe it's a bad
idea later.
2010-03-18 10:44:55 +13:00
Andrew McMillan
65e6eb2eff GET now working with bound resources. 2010-03-15 14:55:06 +13:00
Andrew McMillan
4d674c4f92 Getting bindings to work as seamlessly as possible. 2010-03-15 00:31:16 +13:00
Andrew McMillan
0a1b3c2d59 All regression tests passing again with BIND for PROPFIND. 2010-03-14 12:16:12 +13:00
Andrew McMillan
f78655e952 Fixing up various minor regressions after restructuring PROPFIND. 2010-03-14 01:48:55 +13:00
Andrew McMillan
ed055722e9 Working BIND and PROPFIND of bound resources. 2010-03-14 00:22:43 +13:00
Andrew McMillan
3e455c8543 Split dav_name into real_dav_name & bound_dav_name.
This is a first stage in disconnecting these two for an
implementation of WebDAV BIND which is going to arrive in
the next few days...
2010-03-11 23:59:18 +13:00
Andrew McMillan
2589fdc237 Return 'infinity' for ticket timeout when expires is null. 2010-03-11 13:53:03 +13:00
Andrew McMillan
bd875029a1 Changes for ticketdiscovery. 2010-03-08 16:44:06 +13:00
Andrew McMillan
c6745c97b0 Tickets now working for PROPFIND requests, and maybe more... 2010-03-06 23:30:12 +13:00
Andrew McMillan
c3cfc97fff Add an empty response to the DAV::group property. 2010-03-06 00:21:01 +13:00
Andrew McMillan
0fffd0e417 First (untested) cut at MKTICKET implementation. 2010-03-05 00:02:26 +13:00
Andrew McMillan
0e1df68878 Correct allprop/include processing. 2010-02-28 22:39:02 +13:00
Andrew McMillan
023e4db443 DAV::owner should be wrapped with DAV::property in DAV::ace response. 2009-12-28 13:17:48 +13:00
Andrew McMillan
6269980fd5 Add support for principal-search-property-set REPORT per RFC3744 2009-12-27 23:29:57 +13:00
Andrew McMillan
45e1222a9d Refactor the construction of DAV::acl and report owner acl 2009-12-27 23:28:40 +13:00
Andrew McMillan
38d1d430a5 Strip redundant code from CalDAVRequest 2009-12-27 14:16:09 +13:00
Andrew McMillan
5055d28c07 Revert misguided namespacing change on Not Found properties. 2009-12-27 14:15:04 +13:00
Andrew McMillan
e742238e9a Move response for supported-lock and supported-privilege-set into DAVResource.php 2009-12-27 14:14:06 +13:00
Andrew McMillan
67c8be1f2a Reply to denied/notfound properties with a namespace-aliased response. 2009-12-26 13:27:55 +13:00
Andrew McMillan
f33de018f3 Deny visibility of DAV::current-user-principal-set and DAV::acl as appropriate. 2009-12-26 12:37:02 +13:00
Andrew McMillan
c7c5c1d784 Ensure privileges are in decimal form. 2009-12-26 12:36:26 +13:00
Andrew McMillan
ebbec96269 Add NeedPrivilege() method to DAVResource and simplify request method. 2009-12-26 11:19:21 +13:00
Andrew McMillan
e0e5887762 Implementation of inherited-acl-set property. 2009-12-26 10:43:35 +13:00
Andrew McMillan
921926acf5 Add support for the DAV::acl-restrictions property. 2009-12-26 00:14:34 +13:00
Andrew McMillan
7e4b8c33c3 Add support for the <acl> property. 2009-12-26 00:13:51 +13:00