1286 Commits

Author SHA1 Message Date
Andrew McMillan
f2ebbda855 Add parameter for masking privilege output to only applicable set. 2010-06-28 09:31:35 +12:00
Andrew McMillan
adb1f949ac Check for existence of target resource before we check for READ perm. 2010-06-28 08:41:46 +12:00
Andrew McMillan
766e825f99 Forece content-type in some circumstances.
If the method is REPORT or PROPFIND it won't be valid if they
didn't send XML, so assume they did, with a warning.

Otherwise, if the content-type is XML, but they sent less than
7 bytes, assume that it has no content-type.
2010-06-28 08:39:39 +12:00
Andrew McMillan
f644a31f9b Avoid potential unassigned variable warning. 2010-06-27 19:06:27 +12:00
Andrew McMillan
e7ad2ab06d Switch to 412 precondition failed in line with CardDAV RFC. 2010-06-27 19:03:56 +12:00
Andrew McMillan
2f38cf077b Don't allow PUT of non-calendar/address resources into calendars/addressbooks. 2010-06-27 18:56:17 +12:00
Andrew McMillan
50fca47f06 Correct return code on PUT modified. 2010-06-23 22:36:14 +12:00
Andrew McMillan
2643a1a34c Correct content-type. 2010-06-23 22:09:14 +12:00
Andrew McMillan
252dac585c Send a correct content-type on GET. 2010-06-23 22:08:57 +12:00
Andrew McMillan
60d7780b1d Rename the event() function to resource() since it might not be an event. 2010-06-23 22:08:19 +12:00
Andrew McMillan
2a18bb3b37 Rename variable since it is no longer just a calendar. 2010-06-23 14:38:56 +12:00
Andrew McMillan
f71bba3747 Work on making this work for CardDAV. 2010-06-23 14:22:26 +12:00
Andrew McMillan
5a708c5462 When we PUT a vcard set the caldav_type to VCARD. 2010-06-23 14:21:55 +12:00
Andrew McMillan
4e1852aee2 Try and read dav_principal since the remote usr record no longer suffices. 2010-06-23 14:15:57 +12:00
Andrew McMillan
b296151724 Re-read local database record if the remote auth did not supply principal_id 2010-06-21 10:56:01 +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
a6fbd99f90 Allow for the send_page_header() function to be overridden. 2010-06-17 23:05:30 +12:00
Andrew McMillan
51700a4ee4 Also remove '/' from potential ticket charset. 2010-06-17 23:04:52 +12:00
Andrew McMillan
a5e6e9113c Handle VCARD on PUT. 2010-05-19 23:53:36 +12:00
Andrew McMillan
737aa5e228 These AwlQuery classes are ow thoroughly migrated into AWL. 2010-05-17 22:43:29 +12:00
Michael Trausch
f3a6cb59f6 A module for authorization by way of the "pwauth" program
This commit adds support for using the 'pwauth' program for
authentication to the system.  It detects all of the documented return
codes for pwauth.  The pwauth program can perform system
authentication with or without PAM or login.conf.
2010-05-14 22:16:13 +12:00
Andrew McMillan
a5d162ccfa Fix typo. 2010-05-14 22:14:20 +12:00
Andrew McMillan
8a5ba6a07e A (still broken) start on parsing VCARD on PUT. 2010-05-12 22:17:10 +12:00
Andrew McMillan
f1a1c2fa73 Add support for the addressbook-multiget REPORT. Untested. 2010-05-12 22:13:46 +12:00
Andrew McMillan
8f22d87a82 Fix if_addressbook for / 2010-05-12 22:12:43 +12:00
Andrew McMillan
cee251d700 Move RRule expansion functions into RRule include. 2010-05-07 22:43:41 +12:00
Andrew McMillan
f844d6b692 Add facility to append to a calendar with ?mode=append on PUT 2010-04-29 16:03:14 +12:00
Andrew McMillan
1f5818f624 RDATE/EXDATE can occur multiply, as well as contain multiple dates. 2010-04-29 11:12:52 +12:00
Andrew McMillan
bfbe6a1e9a Might as well escape ':' as well.
This avoids the possibility of parameter use inside strings and
then subsequent replacement.
2010-04-28 20:15:37 +12:00
Andrew McMillan
6264736bde Display a list of tickets granted by this principal. 2010-04-28 14:10:26 +12:00
Andrew McMillan
a359553eee When a timezone is supplied, but not used in the event, pretend it was.
This gets around some buggy software which expects this kind of
thing to work.
2010-04-28 14:08:14 +12:00
Andrew McMillan
27da222920 Override the DateTime::modify function with our own.
Since it doesn't handle RRULE durations, but we want to do that.
2010-04-28 14:07:23 +12:00
Andrew McMillan
763e287572 Handle escaping of ? for old broken PHP::PDO. 2010-04-28 14:06:29 +12:00
Andrew McMillan
8fbb5cf3a2 Don't complain if the event includes an unused timezone. 2010-04-26 23:27:15 +12:00
Andrew McMillan
8223e2e9f7 Replace deprecated split() calls. 2010-04-26 19:46:23 +12:00
Andrew McMillan
356fbb03ea Fix the SetConnection() method. 2010-04-26 19:46:07 +12:00
Andrew McMillan
1467801345 Handle Transfer-Encoding: chunked responses. 2010-04-26 19:41:20 +12:00
Andrew McMillan
0718aa5352 Log the response regardless, if it is status 400 or greater. 2010-04-19 23:28:13 +12:00
Rob Ostensen
f8027e88e7 fixed bad if statement, actually works for returning freebusy 2010-04-19 14:18:05 +12:00
Rob Ostensen
369f50f281 oops forgot to include the last change here as well. 2010-04-19 14:17:56 +12:00
Rob Ostensen
528211bc65 First phase of iSchedule support. Capabilities supported as well as validating remote requests. Still need to handle remote requests. 2010-04-19 14:17:19 +12:00
Andrew McMillan
b55e69399f Switch to put caldav_data.* in result list after calendar_item.* 2010-04-16 12:47:18 +12:00
Andrew McMillan
9ae3a2d1fb Switch to use RenderGMT() to render these dates. 2010-04-16 12:46:54 +12:00
Andrew McMillan
e8b722f9e1 Fix RenderGMT() to render GMT correctly. 2010-04-16 12:45:17 +12:00
Andrew McMillan
e15c3d3b58 Use the new olson_from_tzstring() function to extract the Olson tz. 2010-04-15 20:25:32 +12:00
Andrew McMillan
7644206a24 Allow configuration of $c->restrict_admin_roles. 2010-04-13 11:51:49 +12:00
Andrew McMillan
ad42769a91 Try to clarify principal actions with better prompts. 2010-04-13 11:51:13 +12:00
Andrew McMillan
8958e99d37 Inactive users should not still be able to access their calendars. 2010-04-13 03:45:00 +12:00
Andrew McMillan
dca93db8ed Catch when we supply parameters without a leading ':' 2010-04-13 03:44:23 +12:00
Andrew McMillan
d652eaf064 Correct mis-specified query parameter. 2010-04-13 03:35:32 +12:00