Summary | LDAP search failed - PHP errors |
Queue | Turba |
Queue Version | 4.0.4 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | frank.richter (at) hrz (dot) tu-chemnitz (dot) de |
Created | 06/04/2013 (4413 days ago) |
Due | |
Updated | 06/04/2013 (4413 days ago) |
Assigned | |
Resolved | 06/04/2013 (4413 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | 4.1.0 |
Patch | No |
State ⇒ Resolved
Milestone ⇒ 4.1.0
commit 3fff7d240a325b4a8af0ffeccf1790a5730d7595
Author: Jan Schneider <jan@horde.org>
Date: Tue Jun 4 11:28:03 2013 +0200
Fix test (
Bug #12297).turba/lib/Driver/Ldap.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/3fff7d240a325b4a8af0ffeccf1790a5730d7595
commit 8c96ef0698de0e7f924ed470019175e76ff273c0
Author: Jan Schneider <jan@horde.org>
Date: Tue Jun 4 11:28:03 2013 +0200
Fix test (
Bug #12297).turba/lib/Driver/Ldap.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/8c96ef0698de0e7f924ed470019175e76ff273c0
Backtrace:
1. Turba_Driver->search() /usr/share/horde5/turba/search.php:132
2. Turba_Driver_Ldap->_search() /usr/share/horde5/turba/lib/Driver.php:604
3. Turba_Driver_Ldap->_buildSearchQuery()
/usr/share/horde5/turba/lib/Driver/Ldap.php:165
4. Turba_Driver_Ldap->_buildSearchQuery()
/usr/share/horde5/turba/lib/Driver/Ldap.php:498
5. Horde::debug() /usr/share/horde5/turba/lib/Driver/Ldap.php:494
2013-06-03T22:17:12+00:00 DEBUG: Variable information:
array(1) {
[0]=>
array(5) {
["field"]=>
string(2) "cn"
["op"]=>
string(4) "LIKE"
["test"]=>
string(7) "cynthia"
["begin"]=>
bool(false)
["approximate"]=>
bool(false)
}
}
Backtrace:
1. Turba_Driver->search() /usr/share/horde5/turba/search.php:132
2. Turba_Driver_Ldap->_search() /usr/share/horde5/turba/lib/Driver.php:604
3. Turba_Driver_Ldap->_buildSearchQuery()
/usr/share/horde5/turba/lib/Driver/Ldap.php:165
4. Horde::debug() /usr/share/horde5/turba/lib/Driver/Ldap.php:494
2013-06-03T22:17:12+00:00 DEBUG: Variable information:
array(5) {
["field"]=>
string(2) "cn"
["op"]=>
string(4) "LIKE"
["test"]=>
string(7) "cynthia"
["begin"]=>
bool(false)
["approximate"]=>
bool(false)
}
Once again:
2013-06-03T22:17:12+00:00 WARN: HORDE [turba] PHP ERROR: Invalid argument
supplied for foreach() [pid 16742 on line 506 of
"/usr/share/horde5/turba/lib/Driver/Ldap.php"]
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ LDAP search failed - PHP errors
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
2013-06-04T08:11:58+02:00 WARN: HORDE [turba] PHP ERROR: Invalid
argument supplied for foreach() [pid 30089 on line 495 of
"/var/www/html/horde/turba/lib/Driver/Ldap.php"]
2013-06-04T08:11:58+02:00 WARN: HORDE [turba] PHP ERROR: Invalid
argument supplied for foreach() [pid 30089 on line 505 of
"/var/www/html/horde/turba/lib/Driver/Ldap.php"]
I traced it down to
/var/www/html/horde/turba/lib/Driver/Ldap.php:496
if (!empty($vals['OR']) || $key == 'OR') {
When $key is 0 (zero) the condition $key == 'OR' is true - strange IMHO!
I changed to $key === 'OR' - and everything is fine.
Regards,
Frank