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: - CronExpressionValidationEnhancement.java (1.35 kB)

Issue Links: - #13621 Cron expression with fixed weekday and fixed date may or may not lead to IllegalStateException (runaway search for next trigger) - #20163 Cron expression validation method in CronSequenceGenerator improved

Comment From: spring-projects-issues

Arcadius Ahouansou commented

Unit tests

Comment From: prasadram

Hi Arcadius Ahouansou,

i would like to work on this issue, please let me know whether i can pick this issue or not ?