View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0013331 | mantisbt | ldap | public | 2011-09-20 06:06 | 2014-09-23 18:05 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.6 | ||||
Target Version | 1.2.9 | Fixed in Version | 1.2.9 | ||
Summary | 0013331: Email lookup against non-existing LDAP account displays warning | ||||
Description | The following warning appears when displaying a bug reported reported by and/or assigned to a user that does not exist in LDAP: SYSTEM NOTICE: Undefined offset: 0 | ||||
Steps To Reproduce |
| ||||
Additional Information | In releases prior to fixing 0012960 (< 1.2.6), the warning is different, and appears also with default $g_display_errors settings: SYSTEM WARNING: array_key_exists() expects parameter 2 to be array, null given | ||||
Tags | No tags attached. | ||||
related to | 0012960 | closed | rombert | Email / Realname lookups against LDAP spew warning when account is not in LDAP |
related to | 0015721 | closed | grangeway | Functionality to consider porting to master-2.0.x |
has duplicate | 0014001 | closed | vboctor | LDAP "SYSTEM NOTICE: Undefined index 0." when attempt to retrieve email for user that doesn't exist |
MantisBT: master-1.2.x 40807864 2011-09-19 23:04 Details Diff |
Fix error handling in ldap_get_field_from_username When successful, ldap_get_entries always returns an array with at least one element inside (the count), so the check for no matches was always successful even when no values were retrieved from LDAP. Fixes 0013331 |
Affected Issues 0013331 |
|
mod - core/ldap_api.php | Diff File | ||
MantisBT: master 79afb164 2011-09-19 23:04 Details Diff |
Fix error handling in ldap_get_field_from_username When successful, ldap_get_entries always returns an array with at least one element inside (the count), so the check for no matches was always successful even when no values were retrieved from LDAP. Fixes 0013331 |
Affected Issues 0013331 |
|
mod - core/ldap_api.php | Diff File |