[Koha-bugs] [Bug 28912] Pseudonymization should display a nice error message when brcypt_settings are not defined

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 30 11:20:14 CEST 2021


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #124191|0                           |1
        is obsolete|                            |
 Attachment #124192|0                           |1
        is obsolete|                            |

--- Comment #7 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 124236
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124236&action=edit
Bug 28912: Prevent Pseudonymization to be set if bcrypt_settings not set

If Pseudonymization is set but the bcrypt_settings config used by the
feature is not set, then there is an ugly 500 on checking out.

bad bcrypt settings at /kohadevbox/koha/Koha/PseudonymizedTransaction.pm line
116.

However it's pretty hard to handle correctly this exception (and that's
why it hasn't be done initially). However we could prevent the pref to
be turned on if the config entry is not present.

Test plan:
Remove the bcrypt_settings from the config
Try to turn the syspref on
Add the config
Try to turn the syspref on/off

Signed-off-by: Andrew Fuerste-Henry <andrew at bywatersolutions.com>

JD amended patch: fix qa failures

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list