[Koha-bugs] [Bug 33880] New: "Enable two-factor authentication" fails if patron's library branchname is too long
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jun 1 18:38:46 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33880
Bug ID: 33880
Summary: "Enable two-factor authentication" fails if patron's
library branchname is too long
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Authentication
Assignee: koha-bugs at lists.koha-community.org
Reporter: pedro.amorim at ptfs-europe.com
QA Contact: testopia at bugs.koha-community.org
CC: dpavlin at rot13.org, jake.deery at ptfs-europe.com,
jonathan.druart+koha at gmail.com,
jonathan.field at ptfs-europe.com,
m.de.rooy at rijksmuseum.nl,
martin.renvoize at ptfs-europe.com,
ryan.henderson at ptfs-europe.com
Depends on: 32011
To reproduce, on ktd:
1) Enable TwoFactorAuthentication system preference
2) Go to "Administration->Libraries"
edit the library's name
"Institut Protestant de Théologie"
to
"Institut Protestant de Théologie and another word"
3) Go to "My account" in the top right corner menu
4) Click the "Edit" button in the "Library use" box and set the library to the
above library
5) Go back to "My account" and click "More" button, select "Manage two-factor
authentication"
6) Click "Enable two-factor authentication" button
7) It explodes
Error logs:
[ERROR] POST /api/v1/auth/two-factor/registration: unhandled exception
(Mojo::Exception)<<Overflow error. version 10
total bits: 2036 max bits: 1728>>
This is the same (or very similar) issue discussed in bug 32011
Bumping the version from 10 to something higher in GD::Barcode::new on
Koha/Auth/TwoFactorAuth.pm works around this issue, but I think we should
discuss and come up with a permanent solution.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32011
[Bug 32011] 2FA - Problem with qr_code generation
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list