Skip to content

Cron Expression validation [SPR-14933] #19500

@spring-projects-issues

Description

@spring-projects-issues

Arcadius Ahouansou opened SPR-14933 and commented

With Spring, the

CronSequenceGenerator.parse()

method does not seem robust enough....

It silently takes expressions such as

0 0/05 * * * *SUN
0 0/05 * * * SUN*
0 0/05 *ANYTHING_HERE * * *

as valid cron expressions.

Moreover,

0 0/05 * * * MON-SUN

throws

java.lang.IllegalArgumentException: Overflow in day for expression "0 0/05 * * * MON-SUN"

Ideally, we want to have a proper and robust cron expression validator.

Note that this issue is related to #13621


Affects: 4.3.4

Attachments:

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions