Bug 34670

Summary: Problem with system preference casServerUrl persistency
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: AuthenticationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: dcook, dpavlin
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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