mirror of
https://github.com/keycloak/keycloak.git
synced 2026-10-23 19:29:23 +03:00
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>