Tcl Library Source Code

View Ticket
Login
Ticket UUID: 5f4f30667b4bc066593e0aa37ddf88b62e1830b5
Title: Error from LDAP package when requesting a larger base64 encoded JPEG image
Type: Bug Version: 1.8
Submitter: anonymous Created on: 2015-12-03 14:09:27
Subsystem: ldap Assigned To: aku
Priority: 8 Severity: Critical
Status: Closed Last Modified: 2018-01-24 20:02:26
Resolution: Duplicate Closed By: aku
    Closed on: 2018-01-24 20:02:26
Description:
When requesting a larger base64 encoded JPEG image (2458481 Byte JPG / 3363119 Byte Base64) from LDAP server (OpenLDAP) you'll get this error message:
---8< ------------------------------------------------------------------------------------------ snip! ---
Connected to LDAP: ldap-xyz.de:636
Protocol error: Error reading LENGTH1 response for handle ::ldap::ldapsock6 : partial
    while executing
"WaitForResponse $handle $conn(searchInProgress)"
    (procedure "searchNext" line 17)
    invoked from within
"searchNext $handle"
    (procedure "::ldap::search" line 12)
    invoked from within
"::ldap::search $handle $CONF(ldap,branch) (uid=test) {uniXYZNumber uniXYZCardNumber jpegPhoto}"
---8< ------------------------------------------------------------------------------------------ snap! ---

When requesting this data with "ldapsearch" command, you'll get the complete document,  e.g.
---8< ------------------------------------------------------------------------------------------ snip! ---
ldapsearch -Wx -H ldaps://ldap-xyz/ -b ou=campus,dc=xyz,dc=de -D uid=abc,ou=uni,ou=campus,dc=xyz,dc=de uid=test
---8< ------------------------------------------------------------------------------------------ snap! ---
User Comments: aku added on 2018-01-24 20:02:26:

Having heard nothing back, now closing this as duplicate of [c247ed5db4].


aku added on 2017-11-01 22:53:59:
This ticket is referenced by the new ticket [c247ed5db4].
A fix for that ticket was committed, see [8b8f10e2bb],
on branch [fix-ldap-partial].

Please check if that fixes your issue as well.