From 8b53f09baa62981263ee3d6f1e7fb338811efe07 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 3 Nov 2007 20:37:44 +1300 Subject: [PATCH] Allow non GET/POST requests on index.php to actually call caldav.php which means that a request for / which becomes index.php, still works with a PROPFIND or similar. --- htdocs/index.php | 23 +- .../regression-suite/826-Spec-PROPFIND.result | 49 +++ .../regression-suite/826-Spec-PROPFIND.test | 31 ++ .../regression-suite/827-Spec-PROPFIND.result | 284 ++++++++++++++++++ .../regression-suite/827-Spec-PROPFIND.test | 31 ++ 5 files changed, 410 insertions(+), 8 deletions(-) create mode 100644 testing/tests/regression-suite/826-Spec-PROPFIND.result create mode 100644 testing/tests/regression-suite/826-Spec-PROPFIND.test create mode 100644 testing/tests/regression-suite/827-Spec-PROPFIND.result create mode 100644 testing/tests/regression-suite/827-Spec-PROPFIND.test diff --git a/htdocs/index.php b/htdocs/index.php index 82d5206a..cab00912 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -1,9 +1,17 @@ LoginRequired(); -require_once("interactive-page.php"); +include("interactive-page.php"); include("page-header.php"); echo <<Where a set of users link to a group, which then links to other users/resources, the access restrictions will apply as the lesser of their link to that group, or the link from the group. They will have no access to each other's calendars. -

Configuring Calendar Clients for RSCDS

-

The RSCDS client setup page on sourceforge have information on how +

Configuring Calendar Clients for DAViCal

+

The DAViCal client setup page on sourceforge have information on how to configure Evolution, Sunbird, Lightning and Mulberry to use remotely hosted calendars.

The administrative interface has no facility for viewing or modifying calendar data.

-

Configuring RSCDS

+

Configuring DAViCal

If you can read this then things must be mostly working already.

-

The RSCDS installation page on sourceforge has +

The DAViCal installation page on sourceforge has some further information on how to install and configure this application.

\ No newline at end of file diff --git a/testing/tests/regression-suite/826-Spec-PROPFIND.result b/testing/tests/regression-suite/826-Spec-PROPFIND.result new file mode 100644 index 00000000..98e41252 --- /dev/null +++ b/testing/tests/regression-suite/826-Spec-PROPFIND.result @@ -0,0 +1,49 @@ + + + + /caldav.php/ + + + httpd/unix-directory + + + 20071103T201818 + + + + DAViCal CalDAV Server + "38f09ba341cd927809b571496db6e4c3" + + + + + + + + + + en_NZ.UTF-8 + + + + + + + + + + + + HTTP/1.1 200 OK + + + + + + + + + HTTP/1.1 404 Not Found + + + diff --git a/testing/tests/regression-suite/826-Spec-PROPFIND.test b/testing/tests/regression-suite/826-Spec-PROPFIND.test new file mode 100644 index 00000000..2ed3d626 --- /dev/null +++ b/testing/tests/regression-suite/826-Spec-PROPFIND.test @@ -0,0 +1,31 @@ +# +# Testing for Spec compliance. PROPFIND on the root +# +TYPE=PROPFIND +URL=http://mycaldav/ +HEADER=User-Agent: RFC2518 Spec Tests +HEADER=Depth: 0 +HEADER=Content-Type: application/xml + + +BEGINDATA + + + + + + + + + + + + + + + + + + + +ENDDATA diff --git a/testing/tests/regression-suite/827-Spec-PROPFIND.result b/testing/tests/regression-suite/827-Spec-PROPFIND.result new file mode 100644 index 00000000..b1762b1c --- /dev/null +++ b/testing/tests/regression-suite/827-Spec-PROPFIND.result @@ -0,0 +1,284 @@ + + + + /caldav.php/ + + + httpd/unix-directory + + + 20071103T202330 + + + + DAViCal CalDAV Server + "38f09ba341cd927809b571496db6e4c3" + + + + + + + + + + en_NZ.UTF-8 + + + + + + + + + + + + HTTP/1.1 200 OK + + + + + + + + + HTTP/1.1 404 Not Found + + + + /caldav.php/user1/ + + + httpd/unix-directory + Dow, 01 Jan 2000 00:00:00 GMT + + Dow, 01 Jan 2000 00:00:00 GMT + + + + + User 1 + "7d0fd5137942261bee17da4287f71494" + + + + + + + + + + en_NZ.UTF-8 + + + + + + + + + + + + HTTP/1.1 200 OK + + + + + + + + + HTTP/1.1 404 Not Found + + + + /caldav.php/manager1/ + + + httpd/unix-directory + Dow, 01 Jan 2000 00:00:00 GMT + + Dow, 01 Jan 2000 00:00:00 GMT + + + + + Manager 1 + "ec5b8b282c4a9c7b73d1e5bf610f0648" + + + + + + + + + + en_NZ.UTF-8 + + + + + + + + + + + + HTTP/1.1 200 OK + + + + + + + + + HTTP/1.1 404 Not Found + + + + /caldav.php/assistant1/ + + + httpd/unix-directory + Dow, 01 Jan 2000 00:00:00 GMT + + Dow, 01 Jan 2000 00:00:00 GMT + + + + + Assistant 1 + "b1f51f4e0cee340892205b0d7d514134" + + + + + + + + + + en_NZ.UTF-8 + + + + + + + + + + + + HTTP/1.1 200 OK + + + + + + + + + HTTP/1.1 404 Not Found + + + + /caldav.php/resource1/ + + + httpd/unix-directory + Dow, 01 Jan 2000 00:00:00 GMT + + Dow, 01 Jan 2000 00:00:00 GMT + + + + + Resource 1 + "7877b4ffa943232dbc624c0249c27e55" + + + + + + + + + + en_NZ.UTF-8 + + + + + + + + + + + + HTTP/1.1 200 OK + + + + + + + + + HTTP/1.1 404 Not Found + + + + /caldav.php/resource2/ + + + httpd/unix-directory + Dow, 01 Jan 2000 00:00:00 GMT + + Dow, 01 Jan 2000 00:00:00 GMT + + + + + Resource 2 + "658fc7067081793e3c1e27b32f935020" + + + + + + + + + + en_NZ.UTF-8 + + + + + + + + + + + + HTTP/1.1 200 OK + + + + + + + + + HTTP/1.1 404 Not Found + + + diff --git a/testing/tests/regression-suite/827-Spec-PROPFIND.test b/testing/tests/regression-suite/827-Spec-PROPFIND.test new file mode 100644 index 00000000..8e78bf79 --- /dev/null +++ b/testing/tests/regression-suite/827-Spec-PROPFIND.test @@ -0,0 +1,31 @@ +# +# Testing for Spec compliance. PROPFIND on the root +# +TYPE=PROPFIND +URL=http://mycaldav/ +HEADER=User-Agent: RFC2518 Spec Tests +HEADER=Depth: 1 +HEADER=Content-Type: application/xml + + +BEGINDATA + + + + + + + + + + + + + + + + + + + +ENDDATA