Mailing List Archive

Importing Calendars in 0.9.9
Hello,

after using davical 0.9.7.6 successfully for a while we tried upgrading
to 0.9.9. The upgrade worked well and the calendars are still available.

However, we did not succeed moving calendar-data from one calendar to
another (i.e. all data from a persons home calendar to an empty group
home calendar). We tried exporting the whole calendar using curl:

curl --basic --request GET --user admin:*** --output out.ics
http://kalender-test/cal/caldav.php/user1/home

and then reimporting it using curl:

curl --basic --request PUT --header "Content-Type: text/calendar;
charset=utf-8" --user admin:*** --data-binary @out.ics
http://kalender-test/cal/caldav.php/group1/home/

group1s home calendar was deleted and recreated beforehand.

With $c->readonly_webdav_collections = false; the import seemingly
worked (correct number of events displayed in the web-UI), but group1s
calendar would not load in Lightning 1.02b2 (Windows). A number of the
following errors appears in the error-log:

Warnung: CalDAV: Unexpected response, status: HTTP/1.1 201 Created,
href: /cal/caldav.php/group1/home/4ebebad0-46e3-46c5-b07d-bbeb4f77203a.ics

with changing uids, then

Fehler: Assert failed: unexepcted endBatch!
2:
[file:///C:/Dokumente%20und%20Einstellungen/stefan/Anwendungsdaten/Thunderbird/Profiles/gpoptqpr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/modules/calProviderUtils.jsm:647]
cPB_endBatch
3:
[file:///C:/Dokumente%20und%20Einstellungen/stefan/Anwendungsdaten/Thunderbird/Profiles/gpoptqpr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/modules/calUtils.jsm
->
file:///C:/Dokumente%20und%20Einstellungen/stefan/Anwendungsdaten/Thunderbird/Profiles/gpoptqpr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calDavRequestHandlers.js:514]
wH_endDocument
4: [null:0] null
5:
[file:///C:/Dokumente%20und%20Einstellungen/stefan/Anwendungsdaten/Thunderbird/Profiles/gpoptqpr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/modules/calUtils.jsm
->
file:///C:/Dokumente%20und%20Einstellungen/stefan/Anwendungsdaten/Thunderbird/Profiles/gpoptqpr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calDavRequestHandlers.js:473]
wSL_onStopRequest

Quelldatei:
file:///C:/Dokumente%20und%20Einstellungen/stefan/Anwendungsdaten/Thunderbird/Profiles/gpoptqpr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/modules/calUtils.jsm
->
file:///C:/Dokumente%20und%20Einstellungen/stefan/Anwendungsdaten/Thunderbird/Profiles/gpoptqpr.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calUtils.js
Zeile: 975

comes up and finally two messages telling that the calendar is now in
read-only:

Warnung: Fehler beim Lesen von Daten f?r Kalender: Group1 Test.
Allerdings ist dieser Fehler wahrscheinlich vernachl?ssigbar, daher
versucht das Programm fortzufahren. Fehlercode: DAV_REPORT_ERROR.
Beschreibung: Es wurde ein Fehler beim Lesen des Kalenders festgestellt:
http://kalender-test/cal/caldav.php/group1/home. Der Kalender wurde
deaktiviert bis er sicher genutzt werden kann.

Warnung: Fehler beim Lesen von Daten f?r Kalender: Group1 Test.
Allerdings ist dieser Fehler wahrscheinlich vernachl?ssigbar, daher
versucht das Programm fortzufahren. Fehlercode: READ_FAILED. Beschreibung:

Afterwards the calendar is in read-only mode and some events are
displayed, but not all.

We also tried exporting the ics with wget, lightning (1.02b2 Windows and
0.9 Linux) and Evolution 2.28.1 and importing it using the web-UI or any
of the Lightnings. The results did not change.

The same ics-file works fine if imported to a local calendar on
Lightning, so we assume it is the import into Davical that does not work
correctly.

We also noticed that removing the vevents with uid equal to the
error-messages by hand does fix the problem. We could not find out what
is different with these events compared to the others that work.

So, is the ics-import broken? How do we import calendars correctly into
Davical?

Regards

Stefan


Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
rscds-general mailing list
rscds-general at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rscds-general
Importing Calendars in 0.9.9 [ In reply to ]
On Fri, 2010-09-03 at 11:12 +0200, Stefan K?rten wrote:
>
> Afterwards the calendar is in read-only mode and some events are
> displayed, but not all.
>
> We also tried exporting the ics with wget, lightning (1.02b2 Windows and
> 0.9 Linux) and Evolution 2.28.1 and importing it using the web-UI or any
> of the Lightnings. The results did not change.
>
> The same ics-file works fine if imported to a local calendar on
> Lightning, so we assume it is the import into Davical that does not work
> correctly.
>
> We also noticed that removing the vevents with uid equal to the
> error-messages by hand does fix the problem. We could not find out what
> is different with these events compared to the others that work.
>
> So, is the ics-import broken? How do we import calendars correctly into
> Davical?

It should not be, but of course I cannot test all possible calendars...
The most likely issue I think would be whether some event in the
calendar contains unusual characters which are non-UTF8, and which
DAViCal fails to convert to UTF8 on load.

You could try importing the calendar through the collection screen, or
loading it locally and copying the events across one at a time by moving
them to a different calendar from inside Lightning.

If you want to send the failing collection to me I can have a look and
see if I can learn anything which I may be able to fix, or explain.

Cheers,
Andrew.
--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
Underlying Principle of Socio-Genetics:
Superiority is recessive.
------------------------------------------------------------------------




Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
rscds-general mailing list
rscds-general at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rscds-general