Bug 40707 - SERVER_DOWN exception handled wrong in get_ldap_connection()
SERVER_DOWN exception handled wrong in get_ldap_connection()
Status: CLOSED DUPLICATE of bug 50631
Product: UCS Test
Classification: Unclassified
Component: Framework
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Philipp Hahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-17 10:29 CET by Florian Best
Modified: 2023-07-26 16:10 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling
Max CVSS v3 score:
best: Patch_Available+


Attachments
patch (758 bytes, patch)
2016-02-17 10:29 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-02-17 10:29:45 CET
Created attachment 7484 [details]
patch

univention/testing/utils.py in get_ldap_connection()

> 118 »   for ldapServer in ldapServers:
> 119 »   »   try:
> 120 »   »   »   return uldap.access(host=ldapServer, port=port, base=ucr['ldap/base'], binddn=binddn, bindpw=bindpw, start_tls=start_tls, decode_ignorelist=decode_ignorelist, follow_referral=True)
> 121 »   »   except ldap.SERVER_DOWN():
                                     ^^
> 122 »   »   »   pass
Comment 1 Philipp Hahn univentionstaff 2023-07-26 15:25:35 CEST
Fixed by https://git.knut.univention.de/univention/ucs/-/commit/7e33cb36b1f07d9964729f6cdc5083b385da3484

*** This bug has been marked as a duplicate of bug 50631 ***