Projet

Général

Profil

Development #61462

pas de détail sur une exception ldap lors de la synchro

Ajouté par Frédéric Péters il y a environ 2 ans. Mis à jour il y a environ 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
06 février 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

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

Révision b8c499d8 (diff)
Ajouté par Frédéric Péters il y a environ 2 ans

ldap: add uniform reporting of exceptions (#61462)

Historique

#1

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
#2

Mis à jour par Frédéric Péters il y a environ 2 ans

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.

#3

Mis à jour par Paul Marillonnet il y a environ 2 ans

  • Statut changé de Solution proposée à Solution validée
#4

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)
#5

Mis à jour par Transition automatique il y a environ 2 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#6

Mis à jour par Transition automatique il y a environ 2 ans

Automatic expiration

Formats disponibles : Atom PDF