Development #61462
pas de détail sur une exception ldap lors de la synchro
0%
Description
Il y a
except ldap.LDAPError as e: log.error('synchronization failed on an LDAP error: "%s"', e)
et on obtient ça :
synchronization failed on an LDAP error: ""
La transformation en chaine de l'exception ne donne rien; dans la doc python-ldap on a
This is the base class of all exceptions raised by the module :py:mod:`ldap`.
Unlike the C interface, errors are not returned as result codes, but
are instead turned into exceptions, raised as soon an the error condition
is detected.The exceptions are accompanied by a dictionary possibly
containing an string value for the key :py:const:`desc`
(giving an English description of the error class)
and/or a string value for the key :py:const:`info`
(giving a string containing more information that the server may have sent).A third possible field of this dictionary is :py:const:`matched` and
is set to a truncated form of the name provided or alias dereferenced
for the lowest entry (object or alias) that was matched.
Exploiter desc quand c'est possible ?
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 2 ans
- Statut changé de Nouveau à En cours
- Assigné à mis à Frédéric Péters
Mis à jour par Frédéric Péters il y a environ 2 ans
- Fichier 0001-ldap-add-uniform-reporting-of-exceptions-61462.patch 0001-ldap-add-uniform-reporting-of-exceptions-61462.patch ajouté
- Statut changé de En cours à Solution proposée
- Patch proposed changé de Non à Oui
Il y avait dans le fichier une part de '%r', mais aussi '%s' % type(e).__name__, et parfois présentés entre parenthèses et parfois derrière deux points.
Mis à jour par Paul Marillonnet il y a environ 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a environ 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit b8c499d892bbc9fdb74869df001c39c5b1c17ad1 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Sun Feb 6 09:34:53 2022 +0100 ldap: add uniform reporting of exceptions (#61462)
Mis à jour par Transition automatique il y a environ 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
ldap: add uniform reporting of exceptions (#61462)