3243 Commits

Author SHA1 Message Date
Ján Máté
b3c8a4ad0f awl interface related changes 2014-04-07 12:26:39 +02:00
Ján Máté
1330892852 fixed missing semicolons in drivers_ldap.php 2014-03-25 19:24:49 +01:00
Ján Máté
6b37b2b422 fixed masking of confidential event components 2014-03-24 01:52:52 +01:00
Andrew McMillan
cd343bd9f2 Merge branch 'master' of github.com:DAViCal/davical into github 2013-10-25 12:20:44 +13:00
Ján Máté
c2b6be3b65 fix for $c->hide_TODO processing and user-agent extension
new option: if set to PHP regex string then hide_TODO is enabled if the client
user-agent string matches the regex for example:
    $c->hide_TODO='#^iOS.*dataaccessd.*#';
will hide all todos from non-owner/non-admin users for iOS devices
2013-10-25 12:16:27 +13:00
Ján Máté
16f617b637 fix of major todo synchronization issue if $c->hide_older_than option is set
todo without start date was never synced
2013-10-25 12:16:27 +13:00
Ján Máté
b5e409f7da fix to rename/delete the collection properties during the collection renaming/deleting 2013-10-25 12:16:27 +13:00
Ján Máté
64372ba529 Extend $c->default_collections - adding 'calendar_components' and 'default_properties'
'calendar_components' sets the
'urn:ietf:params:xml:ns:caldav:supported-calendar-component-set' property for
the calendar collection (used to distinguish between different type of calendar
collections, for example: todo and event calendars) the value must be a
non-empty array; allowed values: 'VEVENT', 'VTODO', 'VJOURNAL', 'VTIMEZONE',
'VFREEBUSY', 'VPOLL', 'VAVAILABILITY'
for example:
  array('VEVENT')
  array('VTODO')
  array('VEVENT', 'VTODO')
  null or undefined => all default calendar components are supported - see
    $c->default_calendar_components
NOTE: if you want to change the value of this property later, you need to do
it directly in the database ("property" table) or in the client software!

'default_properties' sets custom properties for the collection in the
"property" table the value must be a non-empty associative array of
key => value pairs (key = property name, value = property value) for example
(set the calendar color property used by Apple and other clients):
  'default_properties' => array('http://apple.com/ns/ical/:calendar-color'=>'#ff0000'),
   null or undefined   => no property is stored in the database
NOTE: if you want to change the value of this property later, you need to do
it directly in the database ("property" table) or in the client software!
2013-10-25 12:16:27 +13:00
Ján Máté
fd6b10d3e2 Prevent processing of collections from inactive principals
e.g. inactive principal collections are not returned if you use clients with
"delegation" support.
2013-10-25 12:16:27 +13:00
Matthias Beyer
8ab19de1fe Added dbg_error_log() calls for error msgs
If the ldap driver is not valid, the error messages were not printed.
There was just "Couldn't contact LDAP server for authentication" - But
why?

This commit adds a print loop for all messages from the global
$c->messages message array.
2013-10-25 12:16:19 +13:00
Jason Alavaliant
495257bebb add fix for the OSX Contacts.app: 2013-10-25 12:16:08 +13:00
Matthias Beyer
b732dcaeb3 Only set the cached instance if driver is valid
As I could see at other locations in the code, the ldap driver instance
can be invalid. And if the instance is invalid, the getStaticLdap()
function gets called again. Caching would prevent the function from
retrying to initiate the ldapDrivers object.

This commit adds conditional caching: only if the ldap driver instance is
valid, the object gets cached. This ensures that a retry with this function
would really try to create a new ldapDrivers object and not simply
return the (invalid) cached one.
2013-10-24 17:04:36 +13:00
Matthias Beyer
40c87435c1 Instance caching added
There was already a variable to cache the ldap driver instance, and a
check if this variable was already set was there, too! But there was no
code to return the cached instance if the function gets called twice!

Maybe this was simply forgotten...
2013-10-24 17:04:23 +13:00
Andrew McMillan
f3b67a2c62 Improve result checking 2013-10-15 23:48:29 +13:00
Andrew McMillan
9fe1bc73b2 Case folding of property names 2013-10-15 23:47:47 +13:00
Andrew McMillan
74e690103b Reorder results 2013-10-15 23:46:25 +13:00
Andrew McMillan
54222e32a5 Improve successful result checking. 2013-10-15 23:46:06 +13:00
Andrew McMillan
0f4cb2a8a8 Result of character escape fixing. 2013-10-15 23:45:19 +13:00
Andrew McMillan
58bbe1c8c3 Change to read all calendars and then discard inaccessible ones 2013-10-15 23:43:35 +13:00
Andrew McMillan
e6b502e71a Minor restructuring. 2013-09-27 16:29:14 +02:00
Andrew McMillan
5290db2657 Changes to VCALENDAR content due to parser / renderer changes. 2013-09-26 16:27:45 +02:00
Andrew McMillan
02ca39d2fe Changed etags. 2013-09-26 16:27:17 +02:00
Andrew McMillan
7f83ffc31a Changes to sending of DAV header. 2013-09-26 16:26:46 +02:00
Andrew McMillan
413c26dd71 More aggressively set timezone for regression testing. 2013-09-26 16:25:01 +02:00
Andrew McMillan
2aa2f244ee Transifex updates 2013-09-26 16:24:36 +02:00
Andrew McMillan
3e73a8da7b Debugging and small amounts of fixing. 2013-09-26 16:10:02 +02:00
Andrew McMillan
1141a43089 Fixing and debugging. 2013-09-26 16:09:36 +02:00
Andrew McMillan
350bb08445 The SQL date formatting constants have moved. 2013-09-26 16:09:13 +02:00
Andrew McMillan
e49d3dd225 We will add a setting to disable the DAV header on non-OPTIONS requests. 2013-09-26 14:24:38 +02:00
Andrew McMillan
d0fffe490a Set the default timezone to the database as well as for PHP. 2013-09-26 14:24:08 +02:00
Andrew McMillan
f074f214d0 Freebusy should use vComponent rather than the deprecated iCalComponent 2013-09-24 15:43:00 +02:00
Andrew McMillan
8b52d69e1e Force consistent result ordering. 2013-09-24 12:15:02 +02:00
Andrew McMillan
7346c35c0c Results changed for new VXXXXX parser. 2013-09-24 12:14:42 +02:00
Andrew McMillan
50c25cc740 Add options to do colourized, side-by-side & meld reviewing of results. 2013-09-24 11:46:37 +02:00
Andrew McMillan
2589a886f8 Fix deprecated warning. 2013-09-24 11:45:47 +02:00
Andrew Ruthven
ad4e6f1a0b Merge pull request #14 from matthiasbeyer/fix-ldap_driver_caching
Fix ldap driver caching
2013-09-23 03:06:08 -07:00
Andrew Ruthven
5f2a7eb1d3 Merge pull request #13 from matthiasbeyer/ldap_error_output
Added dbg_error_log() calls for error msgs
2013-09-23 03:02:45 -07:00
Ján Máté
183a8c4083 fix for $c->hide_TODO processing and user-agent extension
new option: if set to PHP regex string then hide_TODO is enabled if the client
user-agent string matches the regex for example:
    $c->hide_TODO='#^iOS.*dataaccessd.*#';
will hide all todos from non-owner/non-admin users for iOS devices
2013-09-20 23:18:55 +12:00
Ján Máté
26275a5fab fix of major todo synchronization issue if $c->hide_older_than option is set
todo without start date was never synced
2013-09-20 23:09:43 +12:00
Ján Máté
c2f309981d fix to rename/delete the collection properties during the collection renaming/deleting 2013-09-20 23:06:25 +12:00
Ján Máté
a264a752c4 Extend $c->default_collections - adding 'calendar_components' and 'default_properties'
'calendar_components' sets the
'urn:ietf:params:xml:ns:caldav:supported-calendar-component-set' property for
the calendar collection (used to distinguish between different type of calendar
collections, for example: todo and event calendars) the value must be a
non-empty array; allowed values: 'VEVENT', 'VTODO', 'VJOURNAL', 'VTIMEZONE',
'VFREEBUSY', 'VPOLL', 'VAVAILABILITY'
for example:
  array('VEVENT')
  array('VTODO')
  array('VEVENT', 'VTODO')
  null or undefined => all default calendar components are supported - see
    $c->default_calendar_components
NOTE: if you want to change the value of this property later, you need to do
it directly in the database ("property" table) or in the client software!

'default_properties' sets custom properties for the collection in the
"property" table the value must be a non-empty associative array of
key => value pairs (key = property name, value = property value) for example
(set the calendar color property used by Apple and other clients):
  'default_properties' => array('http://apple.com/ns/ical/:calendar-color'=>'#ff0000'),
   null or undefined   => no property is stored in the database
NOTE: if you want to change the value of this property later, you need to do
it directly in the database ("property" table) or in the client software!
2013-09-20 23:00:40 +12:00
Ján Máté
1532b757f5 Prevent processing of collections from inactive principals
e.g. inactive principal collections are not returned if you use clients with
"delegation" support.
2013-09-20 22:57:54 +12:00
Matthias Beyer
ef365a5940 Only set the cached instance if driver is valid
As I could see at other locations in the code, the ldap driver instance
can be invalid. And if the instance is invalid, the getStaticLdap()
function gets called again. Caching would prevent the function from
retrying to initiate the ldapDrivers object.

This commit adds conditional caching: only if the ldap driver instance is
valid, the object gets cached. This ensures that a retry with this function
would really try to create a new ldapDrivers object and not simply
return the (invalid) cached one.
2013-09-19 11:11:44 +02:00
Matthias Beyer
953b922a13 Instance caching added
There was already a variable to cache the ldap driver instance, and a
check if this variable was already set was there, too! But there was no
code to return the cached instance if the function gets called twice!

Maybe this was simply forgotten...
2013-09-19 11:08:43 +02:00
Matthias Beyer
1f21370b20 Added dbg_error_log() calls for error msgs
If the ldap driver is not valid, the error messages were not printed.
There was just "Couldn't contact LDAP server for authentication" - But
why?

This commit adds a print loop for all messages from the global
$c->messages message array.
2013-09-19 09:49:55 +02:00
Milan Medlik
2f66c35b22 Merge branch 'master' of https://github.com/DAViCal/davical 2013-09-16 16:03:10 +12:00
Jason Alavaliant
72dc5b1f39 fix the append box when importing collections 2013-09-02 15:02:47 +12:00
Jason Alavaliant
2f27d181f0 fix for CLASS attribute problem (CONFIDENTIAL value) and invalid processing of ->hide_alarm configuration option: 2013-09-02 14:54:12 +12:00
Christoph Anton Mitterer
1d54f57533 removed debian/README.Debian
* Removed debian/README.Debian which didn’t contain any useful information.
2013-09-02 14:53:47 +12:00
Christoph Anton Mitterer
35e471013b support Apache’s REDIRECT_REMOTE_USER CGI env var
* In places where the CGI variable REMOTE_USER is read, support alternatively
  REDIRECT_REMOTE_USER, which is used by the Apache HTTPD Server instead, when a
  redirect was used.

Note: This alone is not enough yet, to fully support it in DAViCal. An analogous
      change (commit 29ddd89baaf65bda2560e51665a2e761abef4147) is necessary in
      AWL.
2013-09-02 14:53:33 +12:00