Always grant 'DAV::read' privilege from principal to group members.

Some clients want to read the group principal before they're happy
to access the group's calendar collections.  This grants them the
DAV::read privilege so they can do that.

Also see: https://bugzilla.mozilla.org/show_bug.cgi?id=610087
This commit is contained in:
Andrew McMillan committed 2010-11-06 15:12:35 +13:00
1 parent 0e9f299f45
commit cd6a609ea2
7 files changed
+104 -24

No files matched your search

Whitespace-only changes.
@@ -0,0 +1,9 @@
#
# Do an OPTIONS request against our own principal-URL
#
TYPE=OPTIONS
URL=http://mycaldav/caldav.php/user1/
HEADER=User-Agent: DAViCalTester/1.0
HEAD
Whitespace-only changes.
@@ -0,0 +1,9 @@
#
# Do an OPTIONS request against the principal-URL of a group we are a member of
#
TYPE=OPTIONS
URL=http://mycaldav/caldav.php/teamclient1/
HEADER=User-Agent: DAViCalTester/1.0
HEAD
@@ -1,18 +1,47 @@
HTTP/1.1 403 Forbidden
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
DAV: extended-mkcol, calendar-proxy, bind, addressbook
Content-Length: 216
ETag: "1f0e016ecbd8566bc60b88a167178059"
Content-Length: 1071
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<error xmlns="DAV:">
<need-privileges>
<resource>
<href>/caldav.php/resmgr1/</href>
<privilege>
<read/>
</privilege>
</resource>
</need-privileges>
</error>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/resmgr1/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/resmgr1/calendar-proxy-read/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/resmgr1/calendar-proxy-write/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
@@ -1,18 +1,47 @@
HTTP/1.1 403 Forbidden
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
DAV: extended-mkcol, calendar-proxy, bind, addressbook
Content-Length: 216
ETag: "1f0e016ecbd8566bc60b88a167178059"
Content-Length: 1071
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<error xmlns="DAV:">
<need-privileges>
<resource>
<href>/caldav.php/resmgr1/</href>
<privilege>
<read/>
</privilege>
</resource>
</need-privileges>
</error>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/resmgr1/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/resmgr1/calendar-proxy-read/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/resmgr1/calendar-proxy-write/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>