mangstadt / biweekly

biweekly is an iCalendar library written in Java.
BSD 2-Clause "Simplified" License
323 stars 44 forks source link

END:VCALENDAR tag truncated in output of go() #120

Closed demanzano closed 2 years ago

demanzano commented 2 years ago

Hi,

I've found an issue, often the output stream of go() is truncated, the ending vcalendar tag is truncated, take a look:

..... END:VEVENT BEGIN:VEVENT UID:392c547b-5167-4b94-9e21-5c720b492335 DTSTAMP:20220906T061946Z DTSTART;TZID=Europe/Rome:20220921T190000 DTEND;TZID=Europe/Rome:20220921T195000 DESCRIPTION:test event SUMMARY:this is a test event END:VEVENT END:VCA

as you can see the "END:VCA" tag is truncated, it should be "END:VCALENDAR" of course.

I tried using a different go() method, with my own byte array output stream or not but no changes, it is still truncated.

String result = Biweekly.write(ical).go();

I upgraded to latest Biweekly 0.6.6 version but nothing changed either, it is still truncated.

Any ideas ?

thanks

A. de Manzano

demanzano commented 2 years ago

SOLVED, sorry for the noise, Biweekly is innocent, it was another part of my code to make this effect. thanks AdM

mangstadt commented 2 years ago

No problem!