Bug 53749 - can't accept incoming events (ics files)
Summary: can't accept incoming events (ics files)
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
: 55386 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-31 16:40 UTC by Frank Weis
Modified: 2003-11-17 00:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Fixes accepting incoming published events (5.44 KB, patch)
2003-06-18 14:22 UTC, Tais P. Hansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Weis 2003-01-31 16:40:37 UTC
Version:           3.1 (using KDE KDE 3.1)
Installed from:    SuSE RPMs
OS:          Linux

Trying to accept an event from the incoming messages box (via korganizerIn) gives me:
"Unable to accept the IMIP-message. It may be a problem with the email addresses."
I have debugged a little, and found out that in libkcal/scheduler.cpp, in function Scheduler::acceptPublish, the 
default option is taken in the switch statement, ie the status is not PublishNew nor Obsolete. I have thrown in some cout statements and found out that the status is 'Unknown'.

There is no "problem with the email addresses." (I have checked inside the ics file.

Hope this helps
Frank
Comment 1 Randall Craig 2003-02-05 18:10:35 UTC
I am also experiencing the same error, with the indentical configuration. 
Comment 2 Clarence Donath 2003-04-22 16:03:30 UTC
Same here.  KDE 3.1.1 on IRIX. 
Comment 3 Tais P. Hansen 2003-06-18 14:21:45 UTC
Since this problem still persists in Korganizer 3.1.2 (3.1.1 - someone obviously 
forgot to bump the version on the release of KDE 3.1.2), I've taken the time to try 
and figure out what's wrong. 
 
 
Debug output: 
 
libkcal: ICalFormat::parseScheduleMessage() getting method... 
libkcal: ICalFormat::parseScheduleMessage() restriction... 
libkcal: Write Event 'Dette er en test' (KOrganizer-866459330.292) 
libkcal: Write alarm for Dette er en test 
libkcal: ICalFormat::parseScheduleMessage() classify... 
libkcal: ICalFormat::parseScheduleMessage() returning... 
libkcal: ICalFormat::parseScheduleMessage(), result = 2 
libkcal: ICalFormat::parseScheduleMessage(), status = 4 
korganizer: Scheduler::acceptTransaction, method=Publish 
korganizer: Scheduler::acceptPublish, status=Unknown Status: 4 
 
 
Analysis: 
 
icalclassify() in ICalFormat::parseScheduleMessage() seems to classify the 
incoming event as an "ICAL_PUBLISH_UPDATE_CLASS" (result=2). The 
switch statement following the icalclassify() call doesn't handle this type (and a 
whole lot of other types) and is thus given the "ScheduleMessage::Unknown" 
status (status=4). 
 
 
Fix: 
 
I've written a quick patch to handle the publish update class. It might not be the 
right way to do this, but it seems like it works. 
 
Comment 4 Tais P. Hansen 2003-06-18 14:22:07 UTC
Created attachment 1833 [details]
Fixes accepting incoming published events
Comment 5 Reinhold Kainhofer 2003-08-08 18:48:31 UTC
*** Bug 55386 has been marked as a duplicate of this bug. ***
Comment 6 Holger Karl 2003-11-12 11:32:23 UTC
It appears that this patch is still missing in the 3.1.4 stable release (just downloaded via konstruct). 

Not sure how to proceed here, but that is a bit of pity...?!?!

BR

Holger
(hkarl@ieee.org)
Comment 7 Cornelius Schumacher 2003-11-17 00:19:26 UTC
Subject: kdepim/libkcal

CVS commit by cschumac: 

Fix iTIP PublishUpdate. Patch by Tais M. Hansen. The new error strings we
can't put in now because of the message freeze.

CCMAIL: 53749-done@bugs.kde.org


  M +6 -0      icalformat.cpp   1.53
  M +31 -12    scheduler.cpp   1.30
  M +1 -1      scheduler.h   1.15