After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 548814 - [On The Web] Cannot read multiple VCALENDAR objects in single file
[On The Web] Cannot read multiple VCALENDAR objects in single file
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Calendar
3.24.x (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2008-08-21 08:45 UTC by Pierre Berthier
Modified: 2017-08-28 15:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
An example ICS file that Evolution cannot read (1.56 KB, text/plain)
2008-08-21 09:10 UTC, Pierre Berthier
Details
ics file (1.14 KB, text/calendar)
2015-03-02 14:01 UTC, Joerg C. Frings-Fuerst
Details

Description Pierre Berthier 2008-08-21 08:45:37 UTC
Please describe the problem:
When creating a new calendar of type "on the web" and pointing it to an online ics file containing multiple VCALENDAR objects, Evolution complains that the file is not valid ics file and fails to import any data.

Steps to reproduce:
1. Get a calendar file with at least two VCALENDAR sections
2. Copy this file on a web server www.xxxxxx.ch/~uuuuuu/temp.ics
3. New -> Calendar
4. Type: on the web, address: webcal://www.xxxxxx.ch/~uuuuuu/temp.ics
5. Click on OK


Actual results:
I get an error message "Error on webcal://www.xxxxxx.ch/~uuuuuu/it.ics:
 Not a calendar." and nothing is imported.

Expected results:
The calendar should be read without error.

Does this happen every time?
yes

Other information:
Comment 1 Pierre Berthier 2008-08-21 09:10:07 UTC
Created attachment 117124 [details]
An example ICS file that Evolution cannot read

If one separate the two VCALENDAR contained in that file into two separate .ics files, both are read by Evolution without errors.
Comment 2 Vincent Lefevre 2010-01-19 15:03:59 UTC
Same problem here under Debian with evolution 2.28.2-3. Perhaps someone could confirm the bug and update the version number?

Calendar files generated on the Nokia N900 (Maemo 5) are affected by this bug.
Comment 3 Olivier C 2010-04-17 19:54:01 UTC
I also see this bug on Ubuntu 9.10, Evolution 2.28.1 .
Comment 4 Akhil Laddha 2011-07-14 10:34:29 UTC
If i check validity of attached file in comment#1 at
http://severinghaus.org/projects/icv/

it yields "Your calendar is using an invalid newline format. Make sure to use \r\n to end lines rather than just \n (RFC 2445 §4.1)"
Comment 5 André Klapper 2012-09-22 18:36:07 UTC
(In reply to comment #1)
> Created an attachment (id=117124) [details]
> An example ICS file that Evolution cannot read

Sorry, your calendar could not be parsed.
Error: 	Error was: Error at line 8: [DTSTART] Unparseable date: "20080723T160000"
Cause: 	Caused by: [DTSTART] Unparseable date: "20080723T160000"

=> Not a valid bug (as it's an invalid file) but an enhancement request to be more grateful when parsing.
Comment 6 Joerg C. Frings-Fuerst 2015-03-02 14:00:29 UTC
Hi,

I have also a bug in evulution with ics files:


After open the ics file via file manager -->> open with evolution the import mask opens.

After ok and click at the calendar and ok again no data imported.

I must repeat the same procedure some times (3 - 7) before the data are imported.

My last ics file is attached.
Comment 7 Joerg C. Frings-Fuerst 2015-03-02 14:01:19 UTC
Created attachment 298298 [details]
ics file
Comment 8 Milan Crha 2017-08-28 13:45:11 UTC
(In reply to Joerg C. Frings-Fuerst from comment #6)
> I must repeat the same procedure some times (3 - 7) before the data are
> imported.

I'm unsure whether you mean to just call Import several times on the same file or just once on multiple files.

> My last ics file is attached.

That file shows one VCALENDAR component with two VEVENT components. That's a valid and expected content of the .ics file, understood by Evolution without any issue (I just tested it and both events are properly imported into an On This Computer calendar).

The original issue is about files containing multiple VCALENDAR components.
Comment 9 Milan Crha 2017-08-28 15:57:23 UTC
I see that the On The Web backend doesn't behave properly, it is valid to have multiple VCALENDAR components an an iCalendar stream, according to the RFC [1], thus I made it do it.

Created commit 323b3b1 in eds master (3.25.92+)

[1] https://tools.ietf.org/html/rfc5545#section-3.4