[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
Sun Sep 5 17:03:26 CEST 2021


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

Joonas Kylmälä <joonas.kylmala at iki.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #124236|0                           |1
        is obsolete|                            |
 Attachment #124237|0                           |1
        is obsolete|                            |

--- Comment #10 from Joonas Kylmälä <joonas.kylmala at iki.fi> ---
Created attachment 124519
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124519&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

Signed-off-by: Joonas Kylmälä <joonas.kylmala at iki.fi>

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


More information about the Koha-bugs mailing list