<div dir="ltr"><div><span style="font-family:monospace,monospace">Package: php-horde-turba<br>Version: 4.2.2-3<br>Severity: normal<br>Tags: patch<br><br></span></div><span style="font-family:monospace,monospace">Scenario: Suppose you have a 'localldap' contacts source which is read-only. Also suppose you have set for this source only 'Read' and 'Show' permissions to 'All Authenticated Users', using the Horde permission system, available under 'Adminsitration' menu.<br><br>Symptoms: Turba will show 'New contact > in localldap' menu option and will also allow one to fill out the new contact form for this source. However, when the user click the 'Add' button, Turba will show this error message 'There was an error adding the new contact. Contact your system administrator for further help.' in that red square box.<br><br>There seems to be a typo in line 431 of /usr/share/horde/turba/lib/Turba.php; The argument of the 'create' function is '$source' but it should be '$sourceId', as I could confirm by inspecting the Turba.php file in the package available in Debian stretch repositories, which ships the version 4.2.18-1 of Turba.<br><br>Attached is a minimal patch that solves the problem.<br></span><div><span style="font-family:monospace,monospace"><br>Regards,<br>Leonardo Bruno<br><br>-- System Information:<br>Debian Release: 8.7<br>  APT prefers stable-updates<br>  APT policy: (500, 'stable-updates'), (500, 'stable')<br>Architecture: amd64 (x86_64)<br><br>Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)<br>Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)<br>Shell: /bin/sh linked to /bin/dash<br>Init: systemd (via /run/systemd/system)<br><br>Versions of packages php-horde-turba depends on:<br>ii  php-horde            5.2.1+debian0-2+deb8u3<br>ii  php-horde-auth       2.1.5-5<br>ii  php-horde-content    2.0.4-4<br>ii  php-horde-core       2.15.0+debian0-1+deb8u1<br>ii  php-horde-data       2.1.0-5<br>ii  php-horde-date       2.0.12-5<br>ii  php-horde-dav        1.1.0-1<br>ii  php-horde-exception  2.0.4-4<br>ii  php-horde-form       2.0.8-2<br>ii  php-horde-group      2.0.4-4<br>ii  php-horde-history    2.3.1-4<br>ii  php-horde-icalendar  2.0.9-4<br>ii  php-horde-mail       2.4.0-4<br>ii  php-horde-mime       2.4.5-3<br>ii  php-horde-nls        2.0.4-2<br>ii  php-horde-perms      2.1.2-4<br>ii  php-horde-prefs      2.7.0-3<br>ii  php-horde-serialize  2.0.2-5<br>ii  php-horde-share      2.0.5-4<br>ii  php-horde-support    2.1.1-4<br>ii  php-horde-url        2.2.3-4<br>ii  php-horde-util       2.5.1-5<br>ii  php-horde-vfs        2.2.0-4<br>ii  php-horde-view       2.0.4-4<br>ii  php5-cli             5.6.30+dfsg-0+deb8u1<br>ii  php5-common          5.6.30+dfsg-0+deb8u1<br>ii  php5-json            1.3.6-1<br><br>Versions of packages php-horde-turba recommends:<br>ii  php-horde-activesync        2.19.2-2<br>ii  php-horde-db                2.1.4-3<br>ii  php-horde-imsp              2.0.5-2<br>ii  php-horde-kolab-format      2.0.5-4<br>ii  php-horde-kolab-storage     2.1.1-3<br>ii  php-horde-ldap              2.2.0-4<br>ii  php-horde-openxchange       1.0.0-2<br>ii  php-horde-service-facebook  2.0.6-2<br><br>php-horde-turba suggests no packages.<br><br>-- no debconf information<br><br></span></div></div>