Andrew McMillan
595e724426
Fix bug in handling bound resources with DAVResource changes.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 18:46:51 +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
e70bcd80d1
Fix caching problems.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 17:00:03 +13:00
Andrew McMillan
52e9ad0018
Fix function declarations. Add comment.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 16:59:24 +13:00
Andrew McMillan
fafa2662b2
Move supported privileges into a private static function, rather
...
than assign the array in every instance of CalDAVRequest.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 16:59:03 +13:00
Andrew McMillan
7d135d39fa
Correct handling of floating events & BYYEARDAY.
...
Also some minor refactoring. Regression tests for all NZ holidays
from 2005 to 2011 (only the calculatable ones for 2005-2008).
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 16:46:57 +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
f305cdf4cb
A few more places we need to ensure the collection is uncached.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:55:55 +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
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
9f8d4b4346
Actually use new calculated per principal auth_realm.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-30 18:59:19 +13:00
Andrew McMillan
5c0dd64d68
Let auth realm be 'per Principal' to work around Mozilla #247486
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-30 12:41:49 +13:00
Andrew McMillan
874b81c1c9
IMAP PAM authentication from Oliver Schulze
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-30 12:29:51 +13:00
Andrew McMillan
08e5f97c56
Remove unnecessary call to DoQuery()
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-28 02:06:02 +13:00
Andrew McMillan
0041a1e331
Since we haven't read the record yet, we can't refer to it's fields.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-28 00:41:33 +13:00
Andrew McMillan
d615da9c55
Adjust comment wording for clarity.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-28 00:41:11 +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
34a27d126d
Refactor PUT functions to set modified/created dates more correctly.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:23:13 +13:00
Andrew McMillan
4876542537
Fix whitespace.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 12:46:00 +13:00
Andrew McMillan
815ca239bb
Add an AddCategory() method to AtomEntry.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 12:45:44 +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
5a014c35f0
Fix references to $c global.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 10:50:36 +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
e5f5f8fc3b
New url() and GetProperty() methods matching DAVResource.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:44:16 +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
b15fcb3f77
Refactoring of RRule-v2, which incidentally fixes a bug!
...
VALUE=DATE:YYYYMMDD dates should now work better, and all date
parsing is much more robust.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:41:52 +13:00
Andrew McMillan
c189b36c28
Fix references to internal static variable.
2010-12-26 01:52:44 +13:00
Andrew McMillan
86216cd291
Refactored RRule to add support for initialisation from a vProperty.
2010-12-26 01:38:17 +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
5e4f574818
One final nail in PgQuery's coffin.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 16:15:36 +13:00
Andrew McMillan
8f8f69cde1
Extensively refactored. Added support for creating tickets.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 15:56:30 +13:00
Andrew McMillan
066732a8a0
Add support for writing scheduling resources on PUT.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 15:55:19 +13:00
Andrew McMillan
60315362dd
Starting to add better support for handling floating time.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 15:52:16 +13:00
Andrew McMillan
ac190c7277
Fix bugs in previous commit. Plus regression tests for it.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-07 09:39:16 +13:00
Andrew McMillan
9b079d7549
Handle empty PROPFIND, don't blow up on invalid XML.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-07 09:28:12 +13:00
Andrew McMillan
0dc20e969f
Use text/vcard for content type in advance of ratification of spec.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-11-30 12:38:02 +13:00
Andrew McMillan
a0dee7f461
Properly handle addressbooks in multiget.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-11-30 12:37:45 +13:00
Andrew McMillan
4380fb12c9
Hide authorization headers in logging.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-11-30 12:36:40 +13:00
Andrew McMillan
4e12eb82e4
Update sync-collection REPORT to match -04 of draft.
2010-11-30 12:31:25 +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
413618749c
Be pedantic about checking user is active before we let them in.
2010-11-27 16:42:22 +13:00
Andrew McMillan
77de9a024e
Fix SQL for group handling from Michael Braun.
2010-11-21 00:57:14 +13:00
Andrew McMillan
ab875b3038
Add principal-collection-set to standard responses for DAVResource.
2010-11-21 00:52:47 +13:00
Andrew McMillan
9fdaef2bd1
Use the commit() method rather than a commit statement.
2010-11-21 00:51:20 +13:00
Andrew McMillan
7b966171cf
Correct typo in POST handling.
2010-11-21 00:50:47 +13:00
Andrew McMillan
9470f0b9e0
Also update displayname if fullname is changed.
2010-11-20 22:13:28 +13:00
Andrew McMillan
844b7b2e94
Handle stuff like DTSTART;TZID=America/New_York:20101119T231307
...
Thanks to Matthias Althaus for pointing out that while the class
attempts to handle this kind of thing, it doesn't actually work.
2010-11-19 23:13:30 +13:00
Andrew McMillan
92bb66abe2
Actually fix that debug message properly.
2010-11-19 23:10:33 +13:00
Andrew McMillan
73d852225f
Remove principal-collection-set response from here. Fix debug call.
2010-11-19 21:06:07 +13:00
Andrew McMillan
0915a78784
Don't let auth functions created duplicate home calendars.
2010-11-09 00:21:35 +13:00