[Koha-bugs] [Bug 32011] New: 2FA - Problem with qr_code generation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 27 10:50:27 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32011

            Bug ID: 32011
           Summary: 2FA - Problem with qr_code generation
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: major
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: jonathan.druart+koha at gmail.com
          Reporter: jonathan.druart+koha at gmail.com
        QA Contact: testopia at bugs.koha-community.org
        Depends on: 29873

Looks like an major bug is caught by this selenium test:

STRACE: /usr/share/perl5/Try/Tiny.pm:123 in Selenium::Remote::Driver::catch
{...} 
        /usr/share/perl5/Selenium/Remote/Driver.pm:361 in Try::Tiny::try       
(eval 541):1 in Selenium::Remote::Driver::__ANON__
        (eval 543):2 in Selenium::Remote::Driver::__ANON__
        /usr/share/perl5/Selenium/Remote/Driver.pm:1058 in
Selenium::Remote::Driver::_execute_command       
/kohadevbox/koha/t/lib/Selenium.pm:203 in
Selenium::Remote::Driver::execute_script
        t/db_dependent/selenium/authentication_2fa.t:264 in
t::lib::Selenium::wait_for_ajax
        /usr/share/perl/5.32/Test/Builder.pm:334 in main::__ANON__
        /usr/share/perl/5.32/Test/Builder.pm:334 in (eval)       
/usr/share/perl/5.32/Test/More.pm:809 in Test::Builder::subtest
        t/db_dependent/selenium/authentication_2fa.t:291 in Test::More::subtest
    # Looks like you planned 7 tests but ran
2.t/db_dependent/selenium/authentication_2fa.t .. 4/5 
#   Failed test 'Enforce 2FA setup on first login'
#   at t/db_dependent/selenium/authentication_2fa.t line 291.Error while
executing command: unexpected alert open: Dismissed user prompt dialog: [object
Object] at /usr/share/perl5/Selenium/Remote/Driver.pm line 411.
 at /usr/share/perl5/Selenium/Remote/Driver.pm line 356.

There is a 500 in the logs:
 "POST /api/v1/app.pl/api/v1/auth/two-factor/registration HTTP/1.1" 500

That is caused by
[ERROR] POST /api/v1/auth/two-factor/registration: unhandled exception
(Mojo::Exception)<<Overflow error. version 8
total bits: 1268  max bits: 1232>>

It's coming from GD::Barcode, in my understanding we should increase
ModuleSize.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29873
[Bug 29873] 2FA: Generate QR code without exposing secret via HTTP GET
-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list