By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2682

Summary: Attempting to archive old entries in korganizer causes a crash
Product: TDE Reporter: Jim <jdiamond>
Component: tdepimAssignee: Michele Calgaro <michele.calgaro>
Status: RESOLVED FIXED    
Severity: major CC: bugwatch, deloptes, jdiamond, michele.calgaro
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: amd64   
OS: Slackware 14   
See Also: http://bugs.pearsoncomputing.net/show_bug.cgi?id=2335
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2885    
Attachments: A korganizer event which causes archive to crash and burn

Description Jim 2016-08-17 11:31:02 CDT
(This was in 14.0.3, but there is no entry for that in the drop-down-list.)

I was archiving entries older than July 1, 2015 from my default calendar and when it should have been saving them, it instead crashed.

This is 100% repeatable.

There is a saved crash report:
https://crashreport.trinitydesktop.org/?action=detail&crashid=TDECRSH-803bbcd-c3698a9-74476f5-a78369c-48a8ad4-06e969c-169adb4#gist_origin

Slackware64 14.3, TDE compiled with the build scripts available at
https://github.com/Thorn-Inurcide/tde-slackbuilds
Comment 1 Jim 2016-08-18 08:43:34 CDT
Whoops... Slackware 14.2, not 14.3
Comment 2 Jim 2016-11-11 11:34:07 CST
Sadly, 14.0.4 also has the same problem.
Comment 3 deloptes 2018-09-09 16:37:40 CDT
if someone is interested debian is not affected - I just tested with 14.1 on stretch
Comment 4 Jim 2018-09-10 06:29:49 CDT
Created attachment 2902 [details]
A korganizer event which causes archive to crash and burn

I discovered a while back that the attached entry (well, the actual entry has valid e-mail addrs and names in it, but I hope I did not destroy the salient features) causes the archive function to crash.  I am not sure what is "special" about it, but by bisecting my calendar.ics I was able to hone in on this.

Having removed that from my calendar.ics file a while back, I went to try out archiving my current ICS file, and korganizer crashed again.

Consequently, I am not as confident that archiving works on Debian as some people; it may be they just don't have calendar entries that make korganizer unhappy.
Comment 5 deloptes 2018-09-10 14:23:49 CDT
Hi this makes perhaps sense - I will look forward to test it next.
I have on my todo list the bug with the calendar test cases and this might be a good test case. 

I'll post back when done.

In any case I want to check if it works with 14.1 because I had similar issues before debugging the parser ... I'm not sure if fixes are already in the master branches of TDE.

regards
Comment 6 Michele Calgaro 2018-11-10 05:56:48 CST
Using the entry attached in comment 4, I am able to reproduce the crash in R14.1.
Will take a look.
Comment 7 Michele Calgaro 2018-11-10 06:08:57 CST
This may be a duplicate of  bug 2335. The crash happens at the same point in the code.
Comment 8 Michele Calgaro 2018-11-10 08:54:35 CST
Fixed in commit 4e2582d3 (R14.1) and f199c3d6 (R14.0).

That problematic entry can now be archived correctly. The problem was with recurrance settings in the entry (RECURRENCE-ID:20141111T113000Z).

There was a bug in the code handling the deletion of objects with recurrence settings. See bug 2335.
Comment 9 Jim 2018-11-11 17:45:00 CST
I'd like to apply your patch.
I've looked in https://www.trinitydesktop.org/patches/?search=&branch=r14.0.x
and can't find the patch.  Is it there?  I don't see it in the list or when I do a search.  (probably PEBKAC, but just in case...)

Thanks for the fix.
Comment 10 Michele Calgaro 2018-11-11 19:16:00 CST
Hi Jim,
not sure why that page does not show the commit. Perhaps it does not refresh everyday....
Anyhow here you can find the commit you are looking for:
https://mirror.git.trinitydesktop.org/gitea/TDE/tdepim/commit/f199c3d632d866f3bb9e811c3969eb6f7c426e3b

In general, using TGW (our gitea based workspace) is the best place when looking for code ;-)
Comment 11 Jim 2018-11-11 21:10:16 CST
Thanks for the commit and the info about TGW.