Project

General

Profile

Development #45576

TypeError: ord() expected string of length 1, but int found

Added by sentry io 7 days ago. Updated 2 days ago.

Status:
Solution déployée
Priority:
Normal
Category:
-
Target version:
-
Start date:
29 Jul 2020
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

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

TypeError: ord() expected string of length 1, but int found
(21 additional frame(s) were not displayed)
...
  File "django/contrib/auth/base_user.py", line 118, in check_password
    return check_password(raw_password, self.password, setter)
  File "django/contrib/auth/hashers.py", line 52, in check_password
    is_correct = hasher.verify(password, encoded)
  File "authentic2/hashers.py", line 92, in verify
    encoded_2 = self.encode(password, salt, int(iterations))
  File "authentic2/hashers.py", line 87, in encode
    return "%s$%d$%s$%s" % (self.algorithm, iterations, salt, self.b64encode(h)[:43])
  File "authentic2/hashers.py", line 50, in b64encode
    value = ord(v[i])

0001-hashers-fix-drupal-password-hasher-45576.patch View (2.59 KB) Valentin Deniaud, 30 Jul 2020 02:27 PM

Associated revisions

Revision a3301348 (diff)
Added by Valentin Deniaud 2 days ago

hashers: fix drupal password hasher (#45576)

History

#1 Updated by Frédéric Péters 7 days ago

  • Project changed from Suivi des traces to Authentic 2

#2 Updated by Valentin Deniaud 6 days ago

  • Assignee set to Valentin Deniaud

#3 Updated by Valentin Deniaud 6 days ago

La trace est due à la transition py2/py3, par contre il y a aussi la méthode to_drupal qui n'a simplement jamais marché.

#4 Updated by Paul Marillonnet 4 days ago

  • Status changed from Solution proposée to Solution validée

Top.

#5 Updated by Valentin Deniaud 2 days ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 41737ef9cd5f047a381d69ffdb99a17dac83444f
Author: Valentin Deniaud <vdeniaud@entrouvert.com>
Date:   Thu Jul 30 14:24:58 2020 +0200

    hashers: fix drupal password hasher (#45576)

#6 Updated by Frédéric Péters 2 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF