Projet

Général

Profil

Bug #70437

sur un login, avec du LDAP, TransactionManagementError: select_for_update cannot be used outside of a transaction.

Ajouté par Sentry Io il y a plus d'un an. Mis à jour il y a plus d'un an.

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

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/96073/

INVALID_CREDENTIALS: {'desc': 'Invalid credentials'}
(5 additional frame(s) were not displayed)
...
  File "authentic2/backends/ldap_backend.py", line 184, in result4
    ) = NativeLDAPObject.result4(
  File "ldap/ldapobject.py", line 758, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "ldap/ldapobject.py", line 331, in _ldap_call
    reraise(exc_type, exc_value, exc_traceback)
  File "ldap/compat.py", line 44, in reraise
    raise exc_value
  File "ldap/ldapobject.py", line 315, in _ldap_call
    result = func(*args,**kwargs)

TransactionManagementError: select_for_update cannot be used outside of a transaction.
(27 additional frame(s) were not displayed)
...
  File "django/db/models/query.py", line 256, in __len__
    self._fetch_all()
  File "django/db/models/query.py", line 1242, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "django/db/models/query.py", line 55, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "django/db/models/sql/compiler.py", line 1129, in execute_sql
    sql, params = self.as_sql()
  File "django/db/models/sql/compiler.py", line 518, in as_sql
    raise TransactionManagementError('select_for_update cannot be used outside of a transaction.')

Demandes liées

Lié à Authentic 2 - Bug #70439: ldap: crash sur une erreur de mot de passeSolution déployée18 octobre 2022

Actions

Historique

#1

Mis à jour par Frédéric Péters il y a plus d'un an

  • Projet changé de Suivi des traces à Authentic 2
#2

Mis à jour par Frédéric Péters il y a plus d'un an

  • Lié à Bug #70439: ldap: crash sur une erreur de mot de passe ajouté
#3

Mis à jour par Frédéric Péters il y a plus d'un an

  • Statut changé de Nouveau à Fermé

Ticket doublonné avec une trace plus longue en #70439.

Formats disponibles : Atom PDF