Bug 31053

Summary: Add Context module to Koha/Encryption
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Architecture, internals, and plumbingAssignee: Marcel de Rooy <m.de.rooy>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: arthur.suzuki, jonathan.druart, lucas, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
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

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.