1774 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
Andrew McMillan
c5c0421caf Add /metrics.php to be scraped by Prometheus for monitoring. 2016-06-22 23:53:22 +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
b7cc11a329 The str_ireplace() function is not always present. 2016-06-22 23:04:52 +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
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
Nishanth Aravamudan
56d4edca87 Update to PHP7.0 naming 2016-06-01 22:46:38 +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
c510a48aaa allow BuildDeadPropertyXML to continue on namespace errors (#9) 2016-01-11 23:38:54 +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
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
3d886ce139 email addresses must be unique: add a tooltip and a warning message (fixes #30) 2015-12-31 18:37:12 +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
Florian Schlichting
38673060a1 Make "Toggle all privileges" button work on all forms 2015-12-16 00:08:21 +01:00
ClemensN
5fd88ce1cb Fixed grouped Properties naming (e.g. Addresses: item1.ADR instead of just ADR) that caused item1.ADR to be written to DB(address_address_adr) because it doesn't match ADR, fix works ofr every grouped Property (yet there is only ADR...)
Added VCard Property ORG as nondefault (because it takes more then one Value)
Fixed false handling of Properties that can have more than one value (e.g. ORG) where values are seperated by semicolons
2015-11-13 21:52:22 +01:00
Louis Duruflé
00eb3c8e49 HttpDateFormat is actually in AwlDBDialect 2015-10-03 00:11:41 +02:00
Florian Schlichting
e3789ba10e set dav_name of imported address books to .vcf instead of .ics (fixes #39)
and correct a number of typos and documentation inaccuracies on the way
2015-10-02 23:58:33 +02:00
Paul Kallnbach
0b40989b4c Merge branch 'fix-propertyupdate' into 'master'
Fix positive PROPPATCH response message body.

The response values must be inside a DAV:response element, which was missing before.

See merge request !18
2015-10-01 20:27:08 +00:00
Marten Gajda
ba13b8db46 Fix positive PROPPATCH response message body.
The response values must be inside a DAV:response element, which was missing before.
2015-07-24 14:39:05 +02:00
Petr Jurášek
f03c0ecc3b Windows phone 8.1 sends ETag=*, see https://www.ietf.org/rfc/rfc2068.txt, chapter 14.25 2015-07-09 08:41:48 +02:00
Andrew Ruthven
3ca7960746 Merge branch 'fix-add-member' into 'master'
Fix add-member support for calendars

Change the add-member parameter to add_member to match the name of the global variable name. Otherwise the global variable was always unset and the generic POST handler handled the request instead of the PUT handler for vcalendars.
Make sure to return a Location header when adding a vcalendar using add-member POST.

See merge request !14
2015-05-28 10:26:18 +00:00
Andrew Ruthven
017fb7731b Merge branch 'content-type-component' into 'master'
Add component parameter to content-types headers and getcontenttype properties

This allows clients using sync-collection requests to filter the results quickly by just looking at the content-type without having to parse the calendar data.

See merge request !15
2015-05-28 10:24:57 +00:00
Marten Gajda
f5dc6c669f Add component parameter to content-types headers and getcontenttype properties
This allows clients to filter the results quickly by just looking at the content-type without having to parse the calendar data.
2015-05-27 19:49:27 +02:00
Marten Gajda
d99a082c24 Change the add-member parameter to add_member to match the name of the global variable name. Otherwise the global variable was always unset and the generic POST handler handled the request instead of the PUT handler for vcalendars.
Make sure to return a Location header when adding a vcalendar using add-member POST.
2015-05-27 14:32:32 +02:00
Andrew Ruthven
71db9008af Merge branch 'master' into 'master'
Basic Auth Bugfix

Bugfix on Basic Auth username/password split.

Basic Auth uses a colon (":") to separate the username and password values. Using the php 'explode' function on this string without limiting the number of substrings returned can truncate the users password if it contains a colon.

By limiting the explode to 2, we get back the username and whatever else is left as the password (hence not truncated).

See merge request !12
2015-05-18 23:07:52 +00:00
Andrew Ruthven
331e4dcccd Merge branch 'import-fix' into 'master'
Fixed broken import function (fixes #38)

Removes a doubled code block introduced in commit 8e60bb3124e2cc4ff09f388e520f3b6935ffc733 causing imports to fail after the first one.

See merge request !13
2015-05-18 23:05:41 +00:00
Andrew Ruthven
a7b316a004 Allow external BIND URL to be file:///
This allows us to load in external files that are copied onto the
Davical server via other means.
2015-05-14 11:17:18 +12:00
Matthias
da750a8092 Fixed broken import function (fixes #38) 2015-04-22 13:31:10 +02:00
Timothy Brown
356c995aa3 Bugfix on Basic Auth username/password split.
Basic Auth uses a colon (":") to separate the username and
password values. Using the php 'explode' function on this
string without limiting the number of substrings returned
can truncate the users password if it contains a colon.
By limiting the explode to 2, we get back the username and
whatever else is left as the password (hence not truncated).
2014-12-29 13:04:17 -07:00
Mark Davies
0cc7b944b4 Add config value "support_obsolete_free_busy_property"
to control whether the obsolete Scheduling property
"calendar-free-busy-set" is populated during a PROPFIND. For Issue #31,
Database Performance Improvements.
2014-12-16 21:30:14 +01:00
Florian
289f75def4 Merge branch 'master' into 'master'
Fix current-user-principal

The RFC 5397 (http://tools.ietf.org/html/rfc5397) states that current-user-principal should return the principal URL for the current user, the one who is currently authenticated.

DAViCal answers with the principal URL for the owner of the resource right now, so this is a simple patch to fix this behaviour.

See merge request !9
2014-12-15 22:22:01 +00:00
Jim Fenton
a877ef47c5 Correct links to mailing list archives and bug report location 2014-11-22 22:10:40 -08:00
Jorge López Pérez
5d6f6b8575 Fix current-user-principal
current-user-principal should always return the principal URL for the
currently authenticated user, not the accessed resource one.
2014-11-10 14:49:32 +01:00
Kribbio
af774dd89c Create array Organizer for merged with array Attendee on 'handle_schedule_reply' function. 2014-09-25 10:36:41 +12:00
Kribbio
bddab50aac Name property is 'schedule-inbox' and not 'schedule_inbox' 2014-09-25 10:27:45 +12:00
Ján Máté
19fbfb0343 fix for debian bug #740827 - ensure that the timestamp inserted into the INSERT query is valid 2014-09-22 22:46:20 +02:00
“Paul
96a5a31203 Fixed fetching new external resources on BIND 2014-06-23 21:55:11 +02:00
“Paul
e913676660 inc/drivers_ldap: fix 'Undefined variable' 2014-06-23 21:44:13 +02:00
“Paul
ba5c7e90e1 CardDAV Query Report 2014-06-23 21:35:47 +02:00