Bug 224013 - vcal import not working "could not load calender file.vcs"
Summary: vcal import not working "could not load calender file.vcs"
Status: RESOLVED NOT A BUG
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.3
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-24 10:38 UTC by David Krapohl
Modified: 2010-02-10 22:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Krapohl 2010-01-24 10:38:20 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Hello
Importing a calendar file received from a travel agency does not work on KDE 4.4 RC1. The error is: "could not load calendar file file.vcs". When I try to import as new calendar, the calendar is created but no events are shown. Removing ";CHARSET=UTF-8" does not change behaviour. 

Korganizer is not really usable for everyday use without that feature.


#-------calendar file--------

BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART;CHARSET=UTF-8:20100129T040800Z
DTEND;CHARSET=UTF-8:20100129T073000Z
SUMMARY;CHARSET=UTF-8:Sundsvall C - Stockholm C
DESCRIPTION;CHARSET=UTF-8:Sundsvall C - Stockholm C
CATEGORY:TRAVEL
END:VEVENT
END:VCALENDAR
Comment 1 Laurent Montel 2010-01-29 10:10:18 UTC
When I try to load your calendar I have theses errors:

This calendar is not correct so korganizer can't load it. It's normal.

korganizer(26353)/kresources KRES::Resource::open: Opening resource "/home/laurent/toto.vcs"                                                
korganizer(26353)/kdepimlibs (kcal) KCal::ResourceCached::doOpen: Opening resource "/home/laurent/toto.vcs"                                 
korganizer(26353)/kdepimlibs (kcal) KCal::ResourceCached::load: "/home/laurent/toto.vcs"                                                    
korganizer(26353)/kdepimlibs (kcal) KCal::ICalFormat::load: "/home/laurent/toto.vcs"                                                        
korganizer(26353)/kdepimlibs (kcal) KCal::ICalFormatImpl::populate: No PRODID property found                                                
korganizer(26353)/kdepimlibs (kcal) KCal::ICalFormatImpl::populate: No VERSION property found                                               
korganizer(26353)/kdepimlibs (kcal) KCal::ICalFormat::fromRawString: Could not populate calendar                                            
korganizer(26353)/kdepimlibs (kcal) KCal::ResourceCalendar::loadError: Error loading resource: ""                                           
korganizer(26353)/kdepimlibs (kcal) KCal::ResourceCached::load: Done loading resource "/home/laurent/toto.vcs"
Comment 2 David Krapohl 2010-01-31 11:13:22 UTC
From your output it seems that it tries loading it as ical-file. It should be vcal or doesn't it matter?
Comment 3 Sergio Martins 2010-02-10 17:00:54 UTC
As far as I remember, it tries to load an ics file, if it doesn't work it tries to load as vcal.

Doesn't your vcal need the VERSION tag?
Comment 4 Sergio Martins 2010-02-10 22:51:41 UTC
Please read http://www.imc.org/pdi/vcal-10.txt

You vcal is malformed, therefor korganizer doesn't show any events.

It needs a VERSION 

"""
Version
This property specifies the identifier corresponding to the highest version number of the vCalendar Specification supported by the implementation that created the vCalendar object. The value of this property must be 1.0 to correspond to this specification.. 
This property is identified by the property name VERSION. The following is an example of this property:
VERSION:1.0
Support for this property is mandatory for implementations conforming to this specification. This property must appear within the vCalendar data stream.
vEvent and vTodo Properties
"""