3407 Commits

Author SHA1 Message Date
Benoît Bleuzé
970b61ac14 Handle empty "modified" ldap mapping
add the epoch origin modification date if the "modified" attribute is either
empty in the config file or is not returned by the request.
2016-09-14 23:18:29 +02:00
Florian Schlichting
6ac89a6315 comment in existing email scheduling code
this reverts 9df80fbde19e561699af33b591e4fdb6c7bbf9cf
fixing the crash by requiring EMail.php (from AWL)

Note: this isn't called when inviting people yet, only when replying to
an external organizer or when cancelling a meeting with external
attendees. Actually sending these emails instead of just logging them
also requires setting $c->iMIP->send_email = 1;
2016-09-13 22:14:41 +02:00
Florian Schlichting
41f6267353 davical-cli: add link to wiki page 2016-07-15 00:17:56 +02:00
Jim Fenton
2aba60d9e4 Merge branch 'prometheus-metrics-database-1.3.2' into 'master'
Prometheus metrics (and  database 1.3.2)

This adds support for a /metrics.php endpoint which can be scraped by Prometheus for collecting monitoring and performance data.  The metrics can work in two different ways.

Firstly, they can work as a simple set of ever-increasing counters.  This is the basic mode, using PostgreSQL database sequences for the underlying data, and hence the new database version associated here.

Alternatively, they can work with memcache to build a more detailed performance picture with more advanced metrics about requests and processing.

If you enable memcache enough to get metrics, you will also get detailed result caching in DAViCal, which seems to work well, but if strange things start to happen that disappear when cache is disabled then it would be great if you could file a detailed bug report.

See merge request !32
2016-07-14 21:10:13 +00:00
Andrew McMillan
c5c0421caf Add /metrics.php to be scraped by Prometheus for monitoring. 2016-06-22 23:53:22 +01:00
Andrew McMillan
1ab66a70b5 Some database changes for server-side attendee handling. 2016-06-22 23:44:10 +01:00
Andrew McMillan
7c53722535 Ignore some local cruft. 2016-06-22 23:41:10 +01:00
Andrew McMillan
b85f8e79fe Fail better!
There's a long-standing annoyance about catching errors in the early
stages of startup - sometimes they seem to disappear nowhere and yet
nothing works.  This fixes at least part of that.
2016-06-22 23:26:24 +01:00
Andrew McMillan
aafd81ffd7 Remove array slice reference on method return value.
Eclipse complained about the syntax, and since it was the only complaint
it had I thought it worth dealing with :-)
2016-06-22 23:24:44 +01:00
Andrew McMillan
9f180c9b8f Sending HTTP headers for TODO seems a bit passive-aggressive! 2016-06-22 23:23:45 +01:00
Andrew McMillan
083fc6dd3b getCacheInstance() is the canonical way to get a reference to the cache. 2016-06-22 23:22:26 +01:00
Andrew McMillan
9997f3a912 Enforce ordering on sample data for more consistent test results. 2016-06-22 23:12:23 +01:00
Andrew McMillan
b73ad6ae19 Regression result changes with calendar-free-busy-set disabled.
The calendar-free-busy-set functionality is old and superseded.
2016-06-22 23:11:40 +01:00
Andrew McMillan
208173043a Update to regression test results for PROPPATCH bugfix. 2016-06-22 23:10:20 +01:00
Andrew McMillan
8bb5e72c7b Updated regression test results from updates to contenttype 2016-06-22 23:08:56 +01:00
Andrew McMillan
b7cc11a329 The str_ireplace() function is not always present. 2016-06-22 23:04:52 +01:00
Andrew McMillan
50d0de4992 Disabling slow query threshold nag for batch job. 2016-06-22 23:01:46 +01:00
Andrew McMillan
2a202c77a2 Ensuring we delete vigorously from the cache for DELETE is ++important! 2016-06-22 22:41:05 +01:00
Andrew McMillan
eb80496511 Provide some more useful error details in various PUT failure situations. 2016-06-22 22:36:06 +01:00
Andrew McMillan
0f41ade035 Bugs pointed out by PHPStorm. 2016-06-22 22:27:16 +01:00
Egoitz Aurrekoetxea
607afb824c Add scripts/davical-cli, an example of a command-line interface for administrative tasks in a large-scale multi-domain setup 2016-06-13 22:12:20 +02:00
Florian Schlichting
0281a8d619 adapt to AWL function rename get_fields() -> awl_get_fields() 2016-06-13 22:02:47 +02:00
Florian Schlichting
928ec35ae1 Merge branch 'i92-ignore-external_refresh' into 'master'
Pass in the refresh interval to fetch_external

If we don't pass in the refresh interval then a default of 1 hour is used, this
isn't really what is intended. (Fixes #92)

See merge request !22
2016-06-02 19:50:19 +00:00
Florian Schlichting
dc4a19e5b1 always regenerate api docs, remove generated files from git 2016-06-01 22:46:46 +02:00
Nishanth Aravamudan
56d4edca87 Update to PHP7.0 naming 2016-06-01 22:46:38 +02:00
Florian Schlichting
fee15797f7 Check for PHP XML support in setup.php (see #91) 2016-06-01 22:40:46 +02:00
Florian Schlichting
482850e6b2 Add missing dependency on php-xml, which is a separate package from PHP 7 (fixes #91) debian/1.1.4-3 2016-06-01 22:20:00 +02:00
Andrew Ruthven
35f656f58b Pass in the refresh interval to fetch_external
If we don't pass in the refresh interval then a default of 1 hour is used, this
isn't really what is intended.
2016-05-19 15:24:39 +12:00
Florian Schlichting
348532e13b Update to work with both php5 and php7, mainly based on the Ubuntu patch debian/1.1.4-2 2016-04-19 21:53:29 +02:00
Florian Schlichting
658daa6d60 release 1.1.4 r1.1.4 2016-01-11 23:57:09 +01:00
Florian Schlichting
c510a48aaa allow BuildDeadPropertyXML to continue on namespace errors (#9) 2016-01-11 23:38:54 +01:00
Cyril Giraud
cf6609b166 Transifex web site URL update. To be continued. 2016-01-10 22:46:48 +01:00
Florian Schlichting
1c5c03f5fd ChangeLog uses tabs, not leading whitespace 2016-01-09 00:27:43 +01:00
Florian Schlichting
8ef7966690 Update ChangeLog, add Debian bug closers 2016-01-09 00:05:24 +01:00
Florian Schlichting
f1595efb48 add the iSchedule administration helper to the menu to give it more visibility and testing
and only show 'List External Calendars' in one (the Admin's) menu
2016-01-08 14:54:19 +01:00
Florian Schlichting
71e27e50cb fix Thunderbird mutilating external attendees
semicolon is a separator in iCal, and even though we send it enclosed in
double quotes TB will choke on it and produce a mess
2016-01-08 14:27:37 +01:00
Florian Schlichting
144a938923 demote stack trace to regular debug logging (cf. #42)
This code produced a stack trace every time an attendee deleted an
event from his calendar. It is not clear what bug this was meant to shed
light on.
2016-01-08 13:35:51 +01:00
Florian Schlichting
fd5e7450f2 Fix scheduling replies with mixed internal and external (ignored) attendees
"new DAVPrincipal" always returns an object, so $attendee_principal will
never be false
2016-01-06 16:04:00 +01:00
Florian Schlichting
af1707ef1d prepare for 1.1.4 2016-01-03 19:09:56 +01:00
Florian Schlichting
b8512ad520 Properly remove /etc/davical/.keep/keepme 2016-01-03 19:09:56 +01:00
Florian Schlichting
ffdc13183f remove database connection check before $c is available (closes #36)
My browser hides the error message behind the menu bar, that's why I'm
also adding a line break in the do_error() handler.
2016-01-01 23:54:01 +01:00
Benedikt Spranger
c35704cc4b handle events started before 1900 (closes: #58)
DTSTART/DTEND can be DATE values instead of DATE-TIME. Our database uses
TIMESTAMP WITH TIME ZONE as field type, which seems to accept 19011224
but not values before 1900, such as 18961224. This patch changes values
between 1000 and 1900 to DATE-TIME by adding "T000000Z"

Patch contributed by Benedikt Spranger <b.spranger@linutronix.de>

Patch limited to dates between 1000 and 1900 by Florian Schlichting
<fsfs@debian.org>
2016-01-01 22:36:25 +01:00
Florian Schlichting
bf733fca8e let admin.php without parameters redirect to index.php, and document restrict_setup_to_admin setting (fixes #55) 2016-01-01 21:55:32 +01:00
Florian Schlichting
1821d65f1b minor cleanup of example-config.php 2016-01-01 21:55:15 +01:00
Florian Schlichting
3d886ce139 email addresses must be unique: add a tooltip and a warning message (fixes #30) 2015-12-31 18:37:12 +01:00
Florian Schlichting
bbc7ddef2f Apache 2.4 removed Order / Allow directives for new Require 2015-12-31 17:32:48 +01:00
Milan Medlik
66dd28addc transform date from iOS to standart format 2015-12-28 00:58:33 +01:00
Andrew McMillan
01a6873d4a Revert "add fix for the OSX Contacts.app:"
This reverts commit 3ab7787f7b2c6bebccbacb31396f77f09aa93f09.

The correct fix for the underlying issue which this attempted
to work around was applied in the AWL/XMLElement Render method.

["correct fix" likely refers to awl commits
    4b56e64bc7127a12df737f157e36fd2de19391dd,
    2589e71e18e6ced753500afe0197995290fac52c,
    aafbd7b1e6ffb59166d57725102f2f5a817a8590 and
    46b112f85711732b62e70f2fb40b866423bbf3b5
picked from github handle-remote-attendees branch]
2015-12-27 13:03:15 +01:00
Andrew McMillan
9580da622a Support regression testing with postgres on non-default port
[from github handle-remote-attendees branch]
2015-12-27 13:02:38 +01:00
Florian Schlichting
8e9eaa3410 fix issue #72 - 405 error when adding a new contact from Apple's Contacts
As can be seen from the reporter's debug output, the problem is that
the POST goes to .../?add-member, whereas davical expects / works with /
redirects to ?add_member (note the underscore). So we have davical treat
?add-member the same as ?add_member
2015-12-26 14:33:28 +01:00