Bugzilla – Attachment 183989 Details for
Bug 40348
api/v1/two_factor_auth.t generates warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40348: Remove warnings from api/v1/two_factor_auth.t
Bug-40348-Remove-warnings-from-apiv1twofactorautht.patch (text/plain), 1.55 KB, created by
Jonathan Druart
on 2025-07-11 12:33:44 UTC
(
hide
)
Description:
Bug 40348: Remove warnings from api/v1/two_factor_auth.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-11 12:33:44 UTC
Size:
1.55 KB
patch
obsolete
>From 7099c31bfbdc374b8a217e0112bc56a3618258a8 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 11 Jul 2025 14:33:02 +0200 >Subject: [PATCH] Bug 40348: Remove warnings from api/v1/two_factor_auth.t > >02:28:36 koha_1 | WARNING: The key derivation method "opensslv1" is deprecated. Using -pbkdf=>'pbkdf2' would be better. >02:28:36 koha_1 | Pass -nodeprecate=>1 to inhibit this message. >02:28:36 koha_1 | at /kohadevbox/koha/Koha/Patron.pm line 3216. > >We should deal with that on a separate bug report. For now we can remove >the warnings from the log/output. >--- > Koha/Encryption.pm | 5 +++-- > t/db_dependent/api/v1/two_factor_auth.t | 3 ++- > 2 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/Koha/Encryption.pm b/Koha/Encryption.pm >index b18f75a9d4a..4cecb6e2820 100644 >--- a/Koha/Encryption.pm >+++ b/Koha/Encryption.pm >@@ -61,8 +61,9 @@ sub new { > ); > } > return $class->SUPER::new( >- -key => $encryption_key, >- -cipher => 'Cipher::AES' >+ -key => $encryption_key, >+ -cipher => 'Cipher::AES', >+ -nodeprecate => 1, > ); > } > >diff --git a/t/db_dependent/api/v1/two_factor_auth.t b/t/db_dependent/api/v1/two_factor_auth.t >index 1ddc0cd4b53..ddb9178e3a2 100755 >--- a/t/db_dependent/api/v1/two_factor_auth.t >+++ b/t/db_dependent/api/v1/two_factor_auth.t >@@ -17,7 +17,8 @@ > > use Modern::Perl; > >-use Test::More tests => 2; >+use Test::More tests => 3; >+use Test::NoWarnings; > use Test::Mojo; > use Test::MockModule; > >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40348
:
183989
|
184026