[Tickets #5960] Creation of doubled blooms of the personal address books

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Dec 5 10:14:46 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5960
-----------------------------------------------------------------------
 Ticket             | 5960
 Created By         | yvon.lafaille at limousin.iufm.fr
 Summary            | Creation of doubled blooms of the personal address books
 Queue              | Turba
 Version            | 2.2-RC1
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Owners             | 
-----------------------------------------------------------------------


yvon.lafaille at limousin.iufm.fr (2007-12-05 02:14) wrote:

Description of the problem
With the new version of turba (2.2-RC1), a new useless and redundant
personal address book is created for each user at the time of the access to
the address book .
This new address book is created in the shared sql source, whereas a
personal address book already exists in the source by defect which is not
shared
Moreover, this address book appears in the drop-down list of the address
books for each user, even if it does not appear in the list of the address
books to propose by defect defined in prefs.php

Context
The sources are configured as follows:
localsql: not shared source where the personal address books of all the
users are, it corresponds to the table turba_objects.
companysql: shared source created by administrator, accessible in reading
only by the users and update automatically, it corresponds to the table
company_addresses

Details of turba configuration files
conf.php
...
$conf['client']['addressbook'] = 'localsql';
$conf['shares']['source'] = '';
...

sources.php
...
$cfgSources['localsql'] = array(
    'title' => _("My Address Book"),
    'type' => 'sql',
    'params' => array_merge($GLOBALS['conf']['sql'], array('table' =>
'turba_objects')),
...
   'use_shares' => false,
...
$cfgSources['companysql'] = array(
    'title' => 'All addresses of the company',
    'type' => 'sql',
    'params' => array_merge($GLOBALS['conf']['sql'], array('table' =>
'company_addresses')),
...
   'use_shares' => true,
...

prefs.php
...
// Address books to be displayed in the address book selection widget
// and in the Browse menu item.  The address book name is stored using
// the source key from sources.php (e.g. "localsql").  Separate
// entries with "\n" , e. g. 'value' => "localsql\nlocalldap" (the
// double quotes are REQUIRED).  If 'value' is empty (''), all address
// books that the user has permissions to will be listed.
$_prefs['addressbooks'] = array(
    'value' => "localsql\ncompanysql:dfa9fb2a5981046059df70cf42141012",
    'locked' => false,
    'shared' => false,
    'type' => 'implicit',
);
...

Considered solutions
1 - When the source of the clients personal address books is not shared,
do not create a personal address book in the shared source if a shared
source exists

or

2 - Define a new parameter in conf.php allowing to choose if it is
necessary or not to create automatically  a personal address book in the
shared source for each user ; for example:
$conf['client']['create_automatically_addressbook_in_share_source'] =
false;

greetings




More information about the bugs mailing list