Commit Graph
238 Commits
Author SHA1 Message Date
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 fe095d009d Refactored to provide clearer display of issues. 2011-01-01 21:23:25 +13:00
Andrew McMillan fbd28407ea Fix cache storing. 2011-01-01 21:22:42 +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 b2f35df817 Just use the fields straight from the database.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 21:30:34 +13:00
Andrew McMillan c3fab4dcd0 Correct feed modification time using collection modified property.
Also switch to using the caldav_data (modified/created) fields from
the database.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:54:31 +13:00
Andrew McMillan 5ad371a910 Don't allow feed access unless user has at least freebusy privileges.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 17:13:43 +13:00
Andrew McMillan 520077a9a5 Add categories to the Atom content.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 13:03:26 +13:00
Andrew McMillan 18e58fa796 Reinstate the summary field in the Atom.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 13:03:03 +13:00
Leho Kraav 6e1a6f3381 feed.php: add support for displaying event categories 2010-12-27 12:37:34 +13:00
Leho Kraav 2b19868bf3 feed.php: migrate from no-locale-supporting DateTime->format() -> strftime() 2010-12-27 12:37:23 +13:00
Leho Kraav 338cb7f35d feed.php: hyperlink urls in description and remove an erroneous setDescription 2010-12-27 12:37:03 +13:00
Leho Kraav 4b4b21ee45 feed.php: fix adding $p_time to itself one too many times in our funky ? : 2010-12-27 12:36:43 +13:00
Leho Kraav 81eba961c8 feed.php: let's dbg_error_log peculiar VCALENDAR component instead of echo 2010-12-27 12:36:15 +13:00
Leho Kraav 37cf2f618d feed.php: make sure we do htmlspecialchars on most to-be-xml content 2010-12-27 12:35:52 +13:00
Leho Kraav 2ebaecd3e3 feed.php: remove hardcoded LIMIT ALL 2010-12-27 12:35:35 +13:00
Leho Kraav c3828f491c feed.php: make a string translatable 2010-12-27 12:35:28 +13:00
Leho Kraav 0ac934268f since we're implementing Atom, refactoring all rss -> feed seems appropriate.
this seems better than going for only atom.php, since we can add more
feed formats in the future under the same infrastructure i.e.
feed.php/user1/home/?format=json.
2010-12-27 12:35:12 +13:00
Andrew McMillan afa74df5c5 Fix corner case of event with no summary.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 23:57:26 +13:00
Andrew McMillan f2486296a7 A new AtomFeed class for building an Atom feed.
Plus the change in rss.php to use it.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 23:31:47 +13:00
Andrew McMillan 0ed9b058c3 Switch to creating an atom feed, which is a better feed standard.
Along with many other small changes and enhancements that ensued
as I ran my eyes over the code.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:38:10 +13:00
Leho Kraav 5ece951362 A new URL to provide an RSS feed of a calendar's changes. 2010-12-26 09:50:40 +13:00
Andrew McMillan 902bf2ad42 Prepare to release 0.9.9.4
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 16:15:58 +13:00
Andrew McMillan 1cbaa5b530 Basic robots.txt that does nothing except stop error log messages. 2010-12-25 14:25:58 +13:00
Andrew McMillan 9bb339e291 Cut access with invalid/expired tickets out immediately.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-08 12:57:12 +13:00
Andrew McMillan 04ecf36c88 Replace index.php with caldav.php when we find it in our path. 2010-11-30 09:52:33 +13:00
Andrew McMillan d347c5c0e9 The redirect on /.well-known/ URLs should be a 301 really. 2010-11-27 19:19:08 +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 20514c05e6 Turn on calendar-auto-schedule header if $c->enable_auto_schedule 2010-10-14 21:20:02 -04:00
Andrew McMillan 2033afcf97 Check for some more things, including that we have the right AWL version. 2010-10-14 21:17:24 -04:00
Andrew McMillan 487693ffee Add knowledge of desired parallel AWL version to setup.
Also add caching of getUserByEmail() since we'll be doing more of
that in the scheduling code.
2010-10-14 21:15:16 -04:00
Andrew McMillan f77ac0fab4 Check for some supported stuff very early so we can show it is missing. 2010-10-07 15:38:07 -04:00
Andrew McMillan 443aae2a52 Preparing to release 0.9.9.3. 2010-09-24 12:51:52 +12:00
Andrew McMillan e0b46d442d Preparing for release 0.9.9.2 2010-09-21 12:14:35 +12:00
Andrew McMillan e87ae9ac63 Release 0.9.9.1 for testing. 2010-09-14 13:50:27 +12:00
Andrew McMillan ed9b3ae693 Tweaking OPTIONS output. 2010-09-12 16:22:58 +12:00
Andrew McMillan 645b9196fc [setup] Detect whether suhosin.server.strip is set and discourage it.
I sanitise the path just fine and I like being able to have arbitrary
paths, and don't want non-alphabetic stuff turned into a question mark.
2010-09-11 23:07:29 +12:00
Andrew McMillan bc88301a4f [index] Allow for a HEAD request on / to be served here too. 2010-09-11 22:52:00 +12:00
Andrew McMillan 50fccc73d8 Working freebusy refactored to use a single core routine. 2010-08-30 18:55:23 +12:00
Andrew McMillan 3300404912 Add a getUserByEMail() function. 2010-08-30 16:59:08 +12:00
Andrew McMillan 64f20edaab Coerce the content-type on PUT.
It seems that failing to correctly set the content-type header
on PUT is a common error.
2010-08-29 13:01:56 +12:00
Andrew McMillan f816c6b56a Fix default locale. 2010-08-13 11:42:16 +12:00
Andrew McMillan 4065f26da2 Default type to 'resource' for privileges display. 2010-06-29 23:49:16 +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 efd40937fe Rewrite the way the DAV header is produced. 2010-06-28 08:39:03 +12:00
Andrew McMillan 5d14ab0fe0 Add support for carddav / caldav well-known URLs. Fix short open tag. 2010-06-27 18:55:13 +12:00
Andrew McMillan dfa78960a0 Add indication of support for addressbook. 2010-06-27 18:47:19 +12:00
Andrew McMillan 28af315848 A fix for problems with character output in the user configuration. 2010-06-17 23:27:22 +12:00
Andrew McMillan 1688ea0df2 Remove reference to RSCDS. 2010-05-26 11:50:25 +12:00
Andrew McMillan 9002e974fc Add a hack so older Mozilla calendar versions don't see auto-schedule. 2010-05-19 23:48:45 +12:00