History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QUARTZ-447
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: James House
Reporter: Jasper Rosenberg
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Quartz Scheduler

CronExpression allows any char after valid value

Created: 16/May/06 01:22 PM   Updated: 02/Sep/06 06:36 AM
Component/s: Triggers
Affects Version/s: 1.6, 1.5.2
Fix Version/s: None

Issue Links:
Duplicate
 
This issue is duplicated by:
QUARTZ-505 org.quartz.CronTrigger.setCronExpress... Minor Closed
Related
This issue relates to:
QUARTZ-353 Correct JavaDoc in CronExpression Trivial Closed
 


 Description  « Hide
The CronExpression parsing appears to ignore any characters after a valid expression. For example this test currently succeeds:

assertEquals(
            new CronExpression("0 15 10 5 * 5 2005").getExpressionSummary(),
            new CronExpression("0x 15y 10z 5C * 5C 2005x").getExpressionSummary());

Interestingly, new CronExpression("0x 15y 10z 5C *X 5C 2005x") also passes parsing, but MONTH is expanded to 1,2,3,4,5,6,7,8,9,10,11,12, so it looks like an extra char after a "*" has a slightly different impact.

 All   Comments   Change History      Sort Order:
There are no comments yet on this issue.