Bug 255183 - Kontact gives "Error storing new task." error while adding New Task to timetracker
Summary: Kontact gives "Error storing new task." error while adding New Task to timetr...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ktimetracker
Classification: Applications
Component: general (show other bugs)
Version: 4.8.x
Platform: PiSi Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Zoltan Gyarmati
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 10:24 UTC by Gökçen Eraslan
Modified: 2019-11-17 22:23 UTC (History)
7 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 Gökçen Eraslan 2010-10-25 10:24:45 UTC
Version:           4.5 (using KDE 4.5.2) 
OS:                Linux

In a fresh KDE install, when I select "New Task" in KTimeTracker, it shows a dialog and asks me the name of task etc. and I can create new tasks successfully. But when I try to see this new task from KTimeTracker inside Kontact, I can't see them.

Also, when I try to create new tasks in Kontact->KTimeTracker, it says:

Error storing new task. Your changes were not saved. Make sure you can edit your iCalendar file. Also quit all applications using this file and remove any lock file related to its name from ~/.kde/share/apps/kabc/lock/ 



Reproducible: Always

Steps to Reproduce:
1. Open Kontact
2. Select Time Tracker
3. Click "New Task"
4. Enter a name and click OK.

Actual Results:  
Error message: Error storing new task. Your changes were not saved. Make sure you can edit your iCalendar file. Also quit all applications using this file and remove any lock file related to its name from ~/.kde/share/apps/kabc/lock/ 

Expected Results:  
Task to be added successfully.

I'm using KDE 4.5.2 and kdepim/kdepim-runtime 4.4.93. I can provide more information if you want.
Comment 1 L. Rahyen 2012-05-26 00:54:55 UTC
This bug is still present in KDE 4.8.3 and Kontact 4.8.3. Time Tracker does not work in Kontact but works as standalone application. So this is Kontact-specific bug. If more information is needed, I will be happy to provide it.k
Comment 2 L. Rahyen 2012-05-27 04:29:52 UTC
Forgot to mention that ~/.kde/share/apps/kabc/lock/ is empty.

Since there is no option to configure what iCalendar file to use in Time Tracker and standalone Time Tracker works fine even if I do not have iCalendar(s) at all, I guessed it's probably uses its own iCalendar file, and I was right. Fanotify showed access to ~/.kde/share/apps/ktimetracker/ktimetracker.ics when running standalone Time Tracker.

However, when running Kontact, strace -f and fanotify do not show any attempt to access ~/.kde/share/apps/ktimetracker/ktimetracker.ics or ~/.kde/share/apps/kabc/lock/ during whole run-time of Kontact, even when I attempt to add New Task. And this is exactly what causes this bug. Time Tracker in the Kontact definitely supposed to use ktimetracker.ics but it does not even try to access it. This is also the reason why in Kontact Time Tracker shows no tasks even if I created a few in standalone Time Tracker.

I think the information above confirms this bug.
Comment 3 Diego Viola 2012-08-03 01:50:04 UTC
I have this problem also, sigh.

Every time I try to start a new task I get this:

"Error storing new task. Your changes were not saved. Make sure you can edit your iCalendar file. Also quit all applications using this file and remove any lock file related to its name from ~/.kde/share/apps/kabc/lock/ "

KDE 4.8.4, archlinux x86_64
Comment 4 piedro 2012-08-29 13:20:05 UTC
this is still present in KDE 4.9! 

At least ktimetracker should be removed from the standard kontact setup and installation! 
Absolute showstopper! Does noone ever use this stuff? If a dev uses it he/she should realize immediatly that this has to be fixed or at least hidden to a general public! i really don't get it - it's not even a proof of concept ... 

thx, piedro
Comment 5 Stan Thorovsky 2012-09-04 13:19:29 UTC
Affects me too, using 4.9 on Ubuntu. Ktimetracker works fine standalone though and this bug only manifests itself when using it from within Kontact.
Comment 6 Diego Viola 2012-10-04 04:35:30 UTC
I'm still getting this error with Kontact on KDE 4.9.2.

"Error storing new task. Your changes were not saved. Make sure you can edit your iCalendar file. Also quit all applications using this file and remove any lock file related to its name from ~/.kde/share/apps/kabc/lock/ "
Comment 7 Duarte Rocha 2012-10-22 09:12:39 UTC
As a work around:

If you use ktimmetracker, individually (not embedded with kontact) it works correctly.

Also, if launched from kontact, it seems that i does not have a temporary file to store the task one is trying to create, so if we use a blank file or create a simple file it will also work.

Using, File->Open 

Select or create a file: SOME-FILE

This also affects me on Fedora 17 KDE 4.9.2

regards
Comment 8 piedro 2012-10-22 19:47:21 UTC
thx Duarta, 
I can create a Testfile and use it. But what kind of file shoud this be and where are the files stored normally (to kep things consistent)? Does timetracker use only one file or does it use different ones? 

Anyway, good to here it's just a minor problem. Who will fix it? 

thx a lot for your help, 
piedro
Comment 9 Sergio Martins 2012-10-23 21:36:00 UTC
We probably should remove it from Kontact while it's not working.
Comment 10 Diego Viola 2014-03-19 09:48:09 UTC
Is this bug still present on latest KDE?
Comment 11 L. Rahyen 2014-03-19 12:35:11 UTC
According to http://forum.kde.org/viewtopic.php?f=215&t=109937 this bug was never fixed (KDE developer said "There are no plans to make it work and we need a maintainer"), so timetracker was removed from Kontact. Therefore it is not present in latest KDE because timetracker removed from Kontact. I guess this bug is "WONTFIX".
Comment 12 Christoph Feck 2014-04-20 20:36:35 UTC
That's odd, because KTimeTracker is part of the 4.12 release.
Comment 13 piedro 2014-04-20 22:47:04 UTC
It's also in 4.13! ... though the copyright note implies it hasn't been updated since 2012. And it seems it still can't be integrated in kontact which is quite sad because this is a killer app if it integrates with addressbook contacts and the task and journal (maybe also events and notes) parts ... 

Though the symbols look like it's still kde3 ... 

so sad, 
piedro
Comment 14 Andrew Crouthamel 2018-09-04 18:53:57 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I will be closing this bug.
Comment 15 Alexander Potashev 2019-11-17 22:23:41 UTC
The KTimeTracker plugin for Kontact is unmaintained and has never been ported to Qt5/KDE Frameworks 5.