20 Commits

Author SHA1 Message Date
Andrew Ruthven
bda3db6da8 Return a nicer error message if no user is found for Free/Busy via email
Previously a stack trace would be returned as the call to dav_name failed,
for example:

Exception [0] Can't calculate dav_name for unknown username
At line 382 of /usr/share/davical/inc/Principal.php
================= Stack Trace ===================
/usr/share/davical/htdocs/freebusy.php[49] Principal->dav_name()
2021-03-02 00:26:49 +13:00
Florian Schlichting
5f3aecfda4 Revert "Support http://.../freebusy.php?foo@example.com"
This reverts commit 38788acc5cbec147d6a46a6254ef8eec0a270c71, which
causes the following tests to fail (not return any FREEBUSY):

    tests/regression-suite/0832-freebusy.test
    tests/regression-suite/0836-freebusy.test
    tests/regression-suite/0837-freebusy.test
    tests/regression-suite/0888-GET-freebusy.test
2017-09-19 20:01:00 +02:00
Andrew Ruthven
38788acc5c Support http://.../freebusy.php?foo@example.com
Sometimes users set the Free/Busy URL to have a ?, not a /. Let's
support that.
2017-05-16 13:33:19 +12:00
Andrew McMillan
1141a43089 Fixing and debugging. 2013-09-26 16:09:36 +02: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
58eb6fa7c0 Fix the logging so that we get the raw_post logged for !GET 2010-11-17 13:15:33 +13:00
Andrew McMillan
50fccc73d8 Working freebusy refactored to use a single core routine. 2010-08-30 18:55:23 +12:00
Andrew McMillan
f0964f7583 Move always.php into the webroot for easier setup.
Also add some 'search for the AWL includes' code into it for
even more easier setup.
2010-03-23 21:52:00 +13:00
Andrew McMillan
b1919850a1 Switch to HavePrivilegeTo() to ensure we catch tickets. 2010-03-07 20:57:33 +13:00
Andrew McMillan
cf5e93c9f5 Allow freebusy query to be public for freebusy URLs at least. 2009-10-07 09:07:50 -07:00
Andrew McMillan
dd4fc3e412 Align freebusy parameter handling with proposed standard.
Also ensure all dates/times are returned in GMT relative,
in compliance with RFC2445.
2009-06-16 22:45:44 +12:00
Andrew McMillan
9683df685b Remove closing ?> 2008-10-26 22:16:53 +13:00
Andrew McMillan
7d563da031 Move debugging of headers to before http auth, making it more useful. 2008-01-24 21:55:35 +13:00
Andrew McMillan
6b1286cf5b Add a framework for supporting Digest authentication. 2007-08-07 22:42:27 +12:00
Andrew McMillan
1eb5308fc2 Separate the creation of the session object from the definition of it's class. 2007-05-30 22:52:58 +12:00
Andrew McMillan
441ec448fe Change freebusy to use the code we wrote for the free busy REPORT. 2006-12-22 09:02:51 +13:00
Andrew McMillan
2800808b90 Allow RSCDS to operate from a subdirectory within another virtual host,
rather than requiring it's own virtual host.
2006-11-30 18:09:38 +13:00
Andrew McMillan
58ac97191a Allow an e-mail address to be used with the freebusy.php functionality. 2006-11-23 20:19:12 +13:00
Andrew McMillan
eed763151f Implement basic freebusy support. 2006-11-21 21:56:22 +13:00
Andrew McMillan
b6ea0453da First release to attempt installation on another machine. 2006-09-13 11:57:30 +12:00