Aias00 opened a new issue, #6555: URL: https://github.com/apache/shenyu/issues/6555
## Description `TimerBeforePredicateJudge` guards with `if (!StringUtils.hasLength(paramName))` (true for both `null` and `""`), falling back to `LocalDateTime.now()`. `TimerAfterPredicateJudge` guards with `if (Objects.isNull(paramName))` (true for `null` only). When `paramName` is an empty string (not null), `TimerAfter` skips the `now()` branch and calls `DateUtils.parseLocalDateTime(realData)`, where `realData` is built from the empty param name — throwing a date-parse exception. ## Location ``` shenyu-plugin-base/.../condition/judge/TimerAfterPredicateJudge.java:36 TimerBeforePredicateJudge.java:36 ``` ## Impact A `TimerAfter` rule condition persisted with an empty-string `paramName` fails with an exception during request-time matching; the rule is effectively treated as not-matching, silently dropping traffic that should have been allowed after the configured time. ## Suggested fix Make `TimerAfterPredicateJudge` use `if (!StringUtils.hasLength(paramName))` like `TimerBefore`. ## Related existing issue(s) None _Identified during the 2026-08-02 audit; full list in [`docs/issue-candidates-2026-08-02.md`](docs/issue-candidates-2026-08-02.md)._ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
