area/authenticationhelp wantedkind/bugpriority/lowstatus/auto-bumpstatus/auto-expireteam/core-authnteam/core-clients
仓库指标
- 星标
- (34,398 个星标)
- PR 合并指标
- (平均合并 6天 19小时) (30 天内合并 384 个 PR)
描述
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
No response
Describe the bug
When having a NULL value or an empty string configured as client home url, the baseUrl property of the ClientBean also becomes a NULL value or an empty string (source).
That breaks certain FTL templates, e.g. the error.ftl, since the href link cant be resolved properly (soure).
Version
26.3.4
Regression
- The issue is a regression
Expected behavior
The base url prop of the ClientBean should resolve to the clients root url in case the home url is null or empty.
Actual behavior
The base url prop of the ClientBean should resolves to null or an empty string in case the home url is null or empty. This breaks certain ftl files...
How to Reproduce?
- In the DB set the home url prop of a client to NULL
- Open the client in the browser -> redirect to KC-Login-Page
- Login with a user that has the terms&conditions required action active
- turn down the terms&conditions -> redirect to error page
--> Failure
Anything else?
No response