Bug 138752 - invitation attachments temporary files are opened with wrong path
Summary: invitation attachments temporary files are opened with wrong path
Status: RESOLVED DUPLICATE of bug 130709
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-13 15:54 UTC by dag
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
strace of link/unlink sequence (3.73 KB, text/plain)
2006-12-13 17:36 UTC, dag
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dag 2006-12-13 15:54:04 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Compiled From Sources
OS:                Linux

Just recieved an invitation in Kmail and was trying to push that into korganizer. It didn't work and checking for the reason I noticed that the attachment was saved in /tmp/kde-dag/kmailL7Ggsb.3/meeting.ics, when the open dialog says: 
Import calendar at 'file:///tmp/kde-dag/meeting.ics_{dERwlc].ics' into KOrganizer.

And sure enough making a link between the two names did make the meeting show up in KOrganizer.

Is this a setting I have missed or a bug?
Comment 1 Jonathan Marten 2006-12-13 16:48:11 UTC
Assuming that the mismatched brackets in the file name are a typo and
"meeting.ics_{dERwlc].ics" should be "meeting.ics_[dERwlc].ics"

Seems to work here (PIM 3.5.5+ work branch).  Same as bug 130709?
Comment 2 dag 2006-12-13 17:19:10 UTC
Your assumption is right, sorry about that.

That bug implies that you have to be fast when selecting what to do with the file.... Hope that is not it. One other strange thing I just noticed is that until I make that link the invitation is just displayed as an attachment. After the link is created it is displayed in a "human readable" form with an accept etc selection.
In other words you don't have to invoke the KOrganizer part at all, kmail in itself has problems
Comment 3 dag 2006-12-13 17:36:31 UTC
Created attachment 18913 [details]
strace of link/unlink sequence
Comment 4 dag 2006-12-13 17:37:47 UTC
Just did a strace of the sequence for that file and it seems you are right: The file is unlinked before korganizer get hold of it. I attach the strace, it might show you something.
Is my PATH too long... ;-)
Comment 5 dag 2006-12-13 17:52:46 UTC
Me again,

I tried the test patch for  bug 130709 and it did indeed fix the problem (as long as you make the decision on what to do within 120 seconds...).

This should really be fixed in a more reliable way though. Do you know if there are any good plans on doing it?
Comment 6 Jonathan Marten 2006-12-13 18:17:07 UTC

*** This bug has been marked as a duplicate of 130709 ***