Bug 34670 - Problem with system preference casServerUrl persistency
Summary: Problem with system preference casServerUrl persistency
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Authentication (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-31 01:29 UTC by Fridolin Somers
Modified: 2023-08-31 22:24 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2023-08-31 01:29:45 UTC
A change in system preference casServerUrl does not affect interface imediatly.

This is because of use of it in Auth_with_cas.pm compilation :
https://git.koha-community.org/Koha-community/Koha/src/commit/e26d7c783eb8c70d318e402e3a90930afcff44cd/C4/Auth_with_cas.pm#L51

Value is only refreshed when plack worker is refreshed and code compiled again.
Comment 1 Fridolin Somers 2023-08-31 05:41:03 UTC
A way to fix this would be to move this configuration to etc/koha-conf.xml and document that it needs plack restart.
We already have LDAP in it.
Comment 2 David Cook 2023-08-31 06:04:08 UTC
(In reply to Fridolin Somers from comment #1)
> A way to fix this would be to move this configuration to etc/koha-conf.xml
> and document that it needs plack restart.
> We already have LDAP in it.

I suppose you could always add a warning on the page for the current situation? I think the OIDC/OAuth2 IdP stuff has a warning that Koha needs to be restarted for it to work.
Comment 3 Fridolin Somers 2023-08-31 22:24:07 UTC
(In reply to David Cook from comment #2)
> 
> I suppose you could always add a warning on the page for the current
> situation? I think the OIDC/OAuth2 IdP stuff has a warning that Koha needs
> to be restarted for it to work.

OK with that