1
0
mirror of https://github.com/keycloak/keycloak.git synced 2026-10-23 19:29:23 +03:00
Files
keycloak/authz
Ayush0612005 48e9b6e66c Treat blank repeat fields as unset in time-based policies
The admin console persists empty strings for unused repeat fields of a
time policy (month, dayMonth, hour, ...). TimePolicyProvider only checked
these values for null before parsing them, so evaluating any permission
that referenced such a policy failed with a NumberFormatException.

Blank or whitespace-only start values are now ignored, and a blank end
value falls back to an exact match on the start value, consistent with
the existing nbf/noa handling.

Closes #53456

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayush0612005 <ayushkulshreshtha37@gmail.com>
2026-10-06 10:11:29 -03:00
..
…