You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/02 12:10:13 UTC
[I] [BUG] TimerAfterPredicateJudge inconsistent with TimerBeforePredicateJudge on empty paramName [shenyu]
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: notifications-unsubscribe@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] TimerAfterPredicateJudge inconsistent with TimerBeforePredicateJudge on empty paramName [shenyu]
Posted by "yykaue (via GitHub)" <gi...@apache.org>.
yykaue commented on issue #6555:
URL: https://github.com/apache/shenyu/issues/6555#issuecomment-5367554334
/assign
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] TimerAfterPredicateJudge inconsistent with TimerBeforePredicateJudge on empty paramName [shenyu]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6555:
URL: https://github.com/apache/shenyu/issues/6555#issuecomment-5157753766
👋 Hello @yuluo-yx
A new issue has been opened by @Aias00:
- **Title**: [BUG] TimerAfterPredicateJudge inconsistent with TimerBeforePredicateJudge on empty paramName
- **Link**: https://github.com/apache/shenyu/issues/6555
Please review when you have time. Thank you! 🙏
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] TimerAfterPredicateJudge inconsistent with TimerBeforePredicateJudge on empty paramName [shenyu]
Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6555: [BUG] TimerAfterPredicateJudge inconsistent with TimerBeforePredicateJudge on empty paramName
URL: https://github.com/apache/shenyu/issues/6555
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org