Bug 31053 - Add Context module to Koha/Encryption
Summary: Add Context module to Koha/Encryption
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor
Assignee: Marcel de Rooy
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-27 08:59 UTC by Marcel de Rooy
Modified: 2023-12-28 20:43 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
22.11.00, 22.05.04
Circulation function:


Attachments
Bug 31053: Add Context module to Koha::Encryption (748 bytes, patch)
2022-06-27 09:00 UTC, Marcel de Rooy
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel de Rooy 2022-06-27 08:59:07 UTC
perl -MKoha::Encryption -e'print Koha::Encryption->new->encrypt_hex("test");'

Can't locate object method "config" via package "C4::Context" (perhaps you forgot to load "C4::Context"?) at /usr/share/koha/Koha/Encryption.pm line 56.

Trivial fix.
Comment 1 Marcel de Rooy 2022-06-27 09:00:55 UTC
Created attachment 136567 [details] [review]
Bug 31053: Add Context module to Koha::Encryption

Test plan:
perl -MKoha::Encryption -e'print Koha::Encryption->new->encrypt_hex("test");'

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 2 Marcel de Rooy 2022-06-27 09:02:11 UTC
Taking liberty to switch to PQA rightaway
Comment 3 Tomás Cohen Arazi (tcohen) 2022-06-27 14:52:36 UTC
Pushed to master for 22.11.

Nice work everyone, thanks!
Comment 4 Lucas Gass (lukeg) 2022-07-29 16:43:38 UTC
Backported to 22.05.x for 22.05.04
Comment 5 Arthur Suzuki 2022-08-11 12:58:07 UTC
Koha/Encryption is missing in 21.11. not backporting.