Opened 19 months ago
Closed 19 months ago
#1488144 closed Bugs (fixed)
Error 700 Service not available after searching in ldap addressbook
| Reported by: | ural | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.7-beta |
| Component: | Addressbook | Version: | git-master |
| Severity: | normal | Keywords: | ldap addressbook search |
| Cc: |
Description
RC 7 trunk 5361 Ldap addressbook linked to windows active directory.
After making a search, I've got correct resultset in 'Contacts', but clicking on any contact results => Service currently not available, error [700].
In error log:
[01-Nov-2011 18:02:00 +0600]: PHP Error: Addressbook source (0LIg0KPRgNCw0Lsg0KTQu9GO0YDQvtCy0LjRhyxPVT1ERVBUX1RlbGVjb20sT1U9VVdDIFVzZXJzLERDPXV3YyxEQz1sb2NhbA-ad) not found! in /var/www/rcmail-dev/program/include/rcmail.php on line 450 (GET /rcdev/?_task=addressbook&_action=show&_source=&_cid=Q0490KXQsNGB0LDQvdC-0LIg0KPRgNCw0Lsg0KTQu9GO0YDQvtCy0LjRhyxPVT1ERVBUX1RlbGVjb20sT1U9VVdDIFVzZXJzLERDPXV3YyxEQz1sb2NhbA-ad&_framed=1)
Change History (3)
comment:1 Changed 19 months ago by alec
comment:2 Changed 19 months ago by ural
Tested. Works great!
comment:3 Changed 19 months ago by alec
- Resolution set to fixed
- Status changed from new to closed
Fixed in [179b39d2].

Please, check this patch for /program/steps/addressbook/func.inc
--- func.inc (wersja 5387) +++ func.inc (kopia robocza) @@ -764,8 +764,12 @@ // if _source is not specified we'll find it from decoded ID if (!$got_source) { list ($c, $s) = explode('-', $id, 2); - if (strlen($s)) { - $result[(string)$s][] = $c; + if ($sep = strrpos($id, '-')) { + $c = substr($id, 0, $sep); + $s = substr($id, $sep+1); + if (strlen($s)) { + $result[(string)$s][] = $c; + } } } else {