The parser fails if the VCALENDAR element has a UID property (not allowed by RFC 5545 but added in RFC 7986, see https://www.rfc-editor.org/info/rfc7986/#section-5.3 ).
The issue can be triggered with a test like this:
def test_vcalendar_with_uid():
vcal_with_uid = """BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Test//Test//EN
UID:calendar-uid-123
BEGIN:VEVENT
DTSTART:20140325T084000Z
DTEND:20140325T101000Z
UID:event-uid-456
SUMMARY:Test Event
END:VEVENT
END:VCALENDAR"""
item = vobject.Item(vcal_with_uid)
assert item.uid == "event-uid-456"
The parser fails if the VCALENDAR element has a UID property (not allowed by RFC 5545 but added in RFC 7986, see https://www.rfc-editor.org/info/rfc7986/#section-5.3 ).
The issue can be triggered with a test like this: