#148 Cancel method for VEVENT demands DTSTART

Release
open
Ben Fortuna
General (64)
5
2012-03-19
2012-03-19
Johny Walker
No

Cancel method for VEVENT incorrectly requires DTSTART to be set.

found in 1.0.3 release

after Calendar.validate() getting:
net.fortuna.ical4j.model.ValidationException: Property [DTSTART] must be specified once
at net.fortuna.ical4j.util.PropertyValidator.assertOne(PropertyValidator.java:112)
at net.fortuna.ical4j.model.component.VEvent$CancelValidator.validate(VEvent.java:641)
at net.fortuna.ical4j.model.component.CalendarComponent.validate(CalendarComponent.java:83)
at net.fortuna.ical4j.model.Calendar.validate(Calendar.java:472)

This is bug in net.fortuna.ical4j.model.component.VEvent.CancelValidator

wrong statement (line 641): PropertyValidator.getInstance().assertOne(Property.DTSTART, getProperties());

should be: assertOneOrLess()

Discussion