2365 Commits

Author SHA1 Message Date
Andrew McMillan
7b18b3edc2 Only display internal paths for bindings. 2010-09-25 22:28:32 +12:00
Andrew McMillan
7e4364c803 If we get NULL for a new sync token reset so we sync everything. 2010-09-25 22:27:49 +12:00
Andrew McMillan
8111c1cc9c Return NULL if we got given a sync token we know nothing about. 2010-09-25 22:27:09 +12:00
Andrew McMillan
193c2bba13 Make 412 error response consistent with PUT-vcard. 2010-09-25 22:26:43 +12:00
Andrew McMillan
4ef39d9d0b Only process to a resource in one place. Surround ETags with quotes. 2010-09-25 22:08:27 +12:00
Andrew McMillan
89f28302dd Leave the quotes around the ETag we receive for comparison. 2010-09-25 22:07:21 +12:00
Andrew McMillan
b80dd10c7b Add a configuration option to use the older 'sync-response' tag.
When the WebDAV sync draft first came out the responses were each
contained in a DAV::sync-response tag, but by -03 this has changed
to a DAV::response tag since the format of the tag contents now
match this existing tag structure.

Unfortunately some client software in the wild depends on this
being a DAV::sync-response so the config option is needed to
interoperate with this software.
2010-09-25 17:18:54 +12:00
Andrew McMillan
1e22e9a8a1 Provide correct getcontenttype property for addressbook resources. 2010-09-25 17:17:06 +12:00
Andrew McMillan
5ebbb198e9 Allow basic auth to supply credentials as well. 2010-09-24 23:33:43 +12:00
Andrew McMillan
79f7347c2d Display the bindings a principal has access to, also. 2010-09-24 23:25:33 +12:00
Andrew McMillan
443aae2a52 Preparing to release 0.9.9.3. 2010-09-24 12:51:52 +12:00
Andrew McMillan
014df24621 Tweak message to use existing translation strings. 2010-09-24 12:41:04 +12:00
Andrew McMillan
d8d42ab383 Convert error responses to use CalDAVRequest::PreconditionFailed() 2010-09-24 12:35:50 +12:00
Andrew McMillan
6d49488a7b Fix fetching of resource by path to work with addressbook resources also. 2010-09-24 12:14:05 +12:00
Andrew McMillan
a9453bf589 Regression tests including sync on addressbkook collections. 2010-09-23 23:22:29 +12:00
Andrew McMillan
dd1d3903ff Make the sync report work with non-calendar resources. 2010-09-23 23:21:11 +12:00
Andrew McMillan
b855a3cbc3 Fix write_sync_changes to cope with non-calendar resources. 2010-09-23 23:20:09 +12:00
Andrew McMillan
7640a2196d Really release 0.9.9.2. r0.9.9.2 2010-09-21 14:31:17 +12:00
Andrew McMillan
201672cef2 Switch to awm@debian.org for e-mail address. 2010-09-21 14:27:36 +12:00
Andrew McMillan
46d728d2e8 Release 0.9.9.2. 2010-09-21 12:53:17 +12:00
Andrew McMillan
7fd0c52056 Recent docs changes. 2010-09-21 12:19:57 +12:00
Andrew McMillan
22d1b9e4cf Results ordering changes in tests. 2010-09-21 12:16:00 +12:00
Andrew McMillan
606375e6f1 [principal/collection edit] Add display of tickets and bindings. 2010-09-21 12:15:16 +12:00
Andrew McMillan
e0b46d442d Preparing for release 0.9.9.2 2010-09-21 12:14:35 +12:00
Andrew McMillan
a46f8bf613 [collection-edit] Handle duplicate key error properly. Avoid SQL error on new. 2010-09-20 12:55:41 +12:00
Andrew McMillan
c5c97ad5d2 [sync-remote] More attempts to handle Google.
It seems that on PUT Google might truncate the filename, so it will
send us back a Location header we need to follow before we can
getr the ETag.  And there might be one more hoop to jump through
to complete this process.

This would be better handled if we locally use the VEVENT UID as
the invariant property between local and remote, rather than the
'filename' part of the path, but we'd still face the issue of
having to follow the Location: header to get the ETag for the
event we just PUT to the remote server.
2010-09-17 14:08:40 +12:00
Andrew McMillan
fa24f6a26e Rebuilt .po files for current HEAD. 2010-09-17 14:07:39 +12:00
Jim Hague
9469eb6d58 PAM - get user name from a comma-less passwd comment field.
PAM authentication uses a regular expression to extract the user's real
name from the 'user name or comment field' passwd file when creating a
new account.

The current regular expression assumes the comment field contains the
user name followed by a comma and some other comma-delimited information
(the Linux 'adduser' command adds room number, work phone, home phone
and 'other' info given half a chance).

If the field just contains the user name, there is no trailing comma
and the RE match fails. Make the trailing comma optional.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-09-17 14:06:23 +12:00
Andrew McMillan
685fec39e8 Remove built docs for files no longer present in DAViCal. 2010-09-14 14:07:48 +12:00
Andrew McMillan
be02f3cd1f [sync-remote-caldav] Handle case where remote server renames on PUT
Some servers rename the event when we PUT it, so in this case we
rename our local copy to match.
2010-09-14 14:00:00 +12:00
Andrew McMillan
7edefc3b15 [sync-caldav] When we PUT the request, save the request/response headers.
We do a HEAD if we didn't get the ETag back from the PUT, but the server
at the other end may have sent us a new location for the resource and
we'll need to handle that at a higher level, so we make sure to preserve
the original response from the PUT.
2010-09-14 13:52:27 +12:00
Andrew McMillan
7ab8a3a3bb Uncomment the addressbook-query report. 2010-09-14 13:51:28 +12:00
Andrew McMillan
e87ae9ac63 Release 0.9.9.1 for testing. r0.9.9.1 2010-09-14 13:50:27 +12:00
Andrew McMillan
593f49c06c Preparing to release 0.9.9.1 2010-09-13 14:20:35 +12:00
Andrew McMillan
74943cd243 Warn if we're being expected to log actions, but have no function. 2010-09-13 14:00:03 +12:00
Andrew McMillan
ef3978d27c Regression result changes. 2010-09-12 16:31:05 +12:00
Andrew McMillan
ed9b3ae693 Tweaking OPTIONS output. 2010-09-12 16:22:58 +12:00
Andrew McMillan
0d9edf6632 Making regression tests work on Lenny. 2010-09-12 14:47:26 +12:00
Andrew McMillan
a0ca0e27c7 Whoops: we weren't sending an ETag on PUT for non-Calendar resources. 2010-09-12 13:13:27 +12:00
Andrew McMillan
a96fc08016 Current regression test results. Mainly due to wrapping changes. 2010-09-12 11:56:29 +12:00
Andrew McMillan
c7b647a919 Add a regression test for initial sync-report on a bound collection. 2010-09-12 11:55:56 +12:00
Andrew McMillan
8afb4676fa [regression tests] Use tar mode for dumps rather than -Fc
The tar mode will be more reliable for restore on older systems
I hope.
2010-09-12 11:54:32 +12:00
Andrew McMillan
937c212b1a [regression tests] Result changes due to UTF8 wrapping fixes in AWL. 2010-09-11 23:13:43 +12:00
Andrew McMillan
e6803496cd Ignore eclipse & other droppings. 2010-09-11 23:12:35 +12:00
Andrew McMillan
9758f417c2 [Cosmetic] Eclipse wants all these turned into &gt; and who am I to argue. 2010-09-11 23:10:15 +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
6115d90cbf [principal edit] Ensure the id is > 0 for us to fetch the record.
As well as causing an unsightly SQL error in the logs this was
actually crashing PHP in some cases.  Also we don't delete the
row unless the ID is > 1, to avoid deleting the admin user by
accident.
2010-09-11 22:50:29 +12:00
Andrew McMillan
19de9d3b01 [sync-collection report] Fix to work with bound collections.
The sync-collection report was looking for $request->CollectionID()
but this is not set for bound collections and we have to use
DAVResource methods to retrieve it.
2010-09-11 22:48:36 +12:00
Andrew McMillan
52695d86ec More binding tests. 2010-09-02 23:06:09 +12:00