Open
Description
While I was working on PR #101 I noticed an issue with decoding of control structures. The tests are now marked as expected failures. We need to investigate later:
======================================================================
ERROR: test_client_controls (__main__.TestLDAPObjectOptions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Tests/t_ldap_options.py", line 136, in test_client_controls
self._test_controls(ldap.OPT_CLIENT_CONTROLS)
File "Tests/t_ldap_options.py", line 75, in _test_controls
self._check_option(option, TEST_CTRL, TEST_CTRL_EXPECTED)
File "Tests/t_ldap_options.py", line 41, in _check_option
new = self.get_option(option)
File "Tests/t_ldap_options.py", line 128, in get_option
return self.conn.get_option(option)
File "/home/heimes/dev/redhat/python-ldap/Lib/ldap/ldapobject.py", line 855, in get_option
result = DecodeControlTuples(result)
File "/home/heimes/dev/redhat/python-ldap/Lib/ldap/controls/__init__.py", line 150, in DecodeControlTuples
control.decodeControlValue(encodedControlValue)
File "/home/heimes/dev/redhat/python-ldap/Lib/ldap/controls/openldap.py", line 37, in decodeControlValue
decodedValue,_ = decoder.decode(encodedControlValue,asn1Spec=self.SearchNoOpControlValue())
File "/usr/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py", line 963, in __call__
'Short octet stream on tag decoding'
pyasn1.error.SubstrateUnderrunError: Short octet stream on tag decoding