keycloak/keycloak

ClientBean BaseURL NULL

已关闭

#45,746 创建于 2026年1月26日

 (2 条评论) (1 个反应) (0 位负责人)Java (8,346 个派生)batch import
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?

  1. In the DB set the home url prop of a client to NULL
  2. Open the client in the browser -> redirect to KC-Login-Page
  3. Login with a user that has the terms&conditions required action active
  4. turn down the terms&conditions -> redirect to error page

--> Failure

Anything else?

No response

贡献者指南