]> git.koha-community.org Git - koha.git/commit
Bug 36134: Read complete Elasticsearch configuration in about.pl
authorLari Taskula <lari.taskula@hypernova.fi>
Tue, 20 Feb 2024 01:47:53 +0000 (01:47 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 19 Mar 2024 20:05:37 +0000 (20:05 +0000)
commita0f3d2a7729ccb447c36b4dec035cfd38277ebf6
tree7ecc71e8ac910307ddcc81a918556b6621274ad6
parentfd48bd79f329bc8ad3826e209261af140834eabd
Bug 36134: Read complete Elasticsearch configuration in about.pl

When enabling Elasticsearch authentication in Koha using userinfo
parameter of Search::Elasticsearch, about.pl breaks and gives an
internal server error.

This patch reads the complete Elasticsearch configuration for
about.pl including userinfo causing about.pl to recover.

To test:
1. In Elasticsearch 7 settings, set "xpack.security.enabled: true"
2. Add <userinfo>elastic:password</userinfo> to KOHA_CONF elasticsearch
   settings
3. Restart plack and navigate to about.pl
4. Observe internal server error
5. Apply patch
6. Refresh about.pl
7. Observe it working again

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 5511482951f812140f134b0ddfc5f3cab2807c77)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit e70bc2d20feabd3c52ae9017f66818d36e573cdc)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
about.pl