6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/27/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8595] 1-click add_address from message display fails with LDAP driver
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..__ __.. . __ |\ |[__)(__ \ // ` | \|| \.__) \/ \__.
Comment
> The bug was noticed with the latest stable Turba (just updated to > 2.3.2) & 2.4.17 OpenLDAP for address and address book storage. > > > > I noticed last week that clicking on the little "add" icon next to a > new address (ie, an address not yet in my default address book) in > the IMP message display gave me an error "Read failed: (0) Success" > > > > Clicking on "add" for an existing address returned the correct > "Already exists" result. > > > > I found the issue to be the method, _get_results, in > turba/lib/Driver/ldap.php, that checks the results of a search for a > duplicate address before adding the new one . When nothing is found > (ie, the results array is empty), _get_results (line 491) considered > that to be a PEAR error. However, lack of results only means a > search came up empty, not that there was an LDAP error. We should > check the error code before declaring a problem. > > > > The good news is that fixing it, for OpenLDAP anyway, is simple. > OpenLDAP returns an error code of 0 when there were no LDAP problems. > So it was a simple matter to add a check of the error code before > declaring that there was a problem. > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers