This is an automated email from the git hooks/post-receive script.
firstyear pushed a change to branch master in repository 389-ds-base.
from 5991388 Ticket 49471 - heap-buffer-overflow in ss_unescape new b5e840b Ticket 49494 - python 2 bytes mode.
The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: src/lib389/lib389/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
This is an automated email from the git hooks/post-receive script.
firstyear pushed a commit to branch master in repository 389-ds-base.
commit b5e840b6f9146de2087291167be57688057c27fb Author: William Brown firstyear@redhat.com Date: Fri Dec 8 16:29:38 2017 +0100
Ticket 49494 - python 2 bytes mode.
Bug Description: a piece of python 2 support was removed that affected some tests.
Fix Description: Add back the suport for non-bytes mode.
https://pagure.io/389-ds-base/issue/49494
Author: wibrown
Review by: tbordaz (Thanks) --- src/lib389/lib389/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/lib389/lib389/__init__.py b/src/lib389/lib389/__init__.py index e23ae91..6961d1f 100644 --- a/src/lib389/lib389/__init__.py +++ b/src/lib389/lib389/__init__.py @@ -1095,7 +1095,10 @@ class DirSrv(SimpleLDAPObject, object): if not uri: uri = self.toLDAPURL() self.log.debug('open(): Connecting to uri %s' % uri) - super(DirSrv, self).__init__(uri, bytes_mode=False, trace_level=TRACE_LEVEL) + if hasattr(ldap, 'PYLDAP_VERSION') and MAJOR >= 3: + super(DirSrv, self).__init__(uri, bytes_mode=False, trace_level=TRACE_LEVEL) + else: + super(DirSrv, self).__init__(uri, trace_level=TRACE_LEVEL)
if certdir is None and self.isLocal: certdir = self.get_cert_dir()
389-commits@lists.fedoraproject.org