Bugzilla – Attachment 133639 Details for
Bug 28998
Encrypt borrowers.secret
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28998: (follow-up) Add warning on about for missing key
Bug-28998-follow-up-Add-warning-on-about-for-missi.patch (text/plain), 2.01 KB, created by
Martin Renvoize (ashimema)
on 2022-04-22 08:36:57 UTC
(
hide
)
Description:
Bug 28998: (follow-up) Add warning on about for missing key
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-04-22 08:36:57 UTC
Size:
2.01 KB
patch
obsolete
>From 5f6107fcee7e072aff401965fdc4217bdbae75eb Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 22 Apr 2022 07:33:28 +0000 >Subject: [PATCH] Bug 28998: (follow-up) Add warning on about for missing key > >Test plan: >Make sure that you have no encryption_key in koha-conf. >Check about page, system information tab. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > about.pl | 4 ++++ > koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 7 +++++++ > 2 files changed, 11 insertions(+) > >diff --git a/about.pl b/about.pl >index 55ffc379fb..ba3434184f 100755 >--- a/about.pl >+++ b/about.pl >@@ -277,6 +277,10 @@ if ( ! C4::Context->config('tmp_path') ) { > } > } > >+if( ! C4::Context->config('encryption_key') ) { >+ push @xml_config_warnings, { error => 'encryption_key_missing' }; >+} >+ > # Test Zebra facets configuration > if ( !defined C4::Context->config('use_zebra_facets') ) { > push @xml_config_warnings, { error => 'use_zebra_facets_entry_missing' }; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index 1438476e29..a3b3bcf3ac 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -484,6 +484,13 @@ > The effective temporary directory is '[% config_entry.effective_tmp_dir | html %]'. > </td> > </tr> >+ [% ELSIF config_entry.error == 'encryption_key_missing' %] >+ <tr> >+ <th scope="row"><strong>Warning</strong></th> >+ <td>You are missing the <encryption_key> entry in your koha-conf.xml file. >+ Please generate a key. We recommend one of at least 32 bytes. (You might use 'pwgen 32' to do so.) >+ </td> >+ </tr> > [% END %] > [% END %] > </table> >-- >2.20.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 28998
:
124772
|
124773
|
124774
|
133291
|
133317
|
133318
|
133319
|
133320
|
133321
|
133322
|
133323
|
133523
|
133524
|
133525
|
133526
|
133527
|
133528
|
133529
|
133580
|
133581
|
133582
|
133583
|
133584
|
133585
|
133586
|
133588
|
133619
|
133620
|
133621
|
133622
|
133623
|
133624
|
133625
|
133626
|
133627
|
133628
|
133629
|
133631
|
133632
|
133633
|
133634
|
133635
|
133636
|
133637
|
133638
|
133639
|
133640
|
133641
|
133642
|
133645
|
133646
|
133647
|
133648
|
133649
|
133650
|
133651
|
133652
|
133653
|
133654
|
133655
|
134636
|
134637
|
134671