[Korganizer-devel] [Bug 282346] KOrganizer resends meeting invites, even though Groupware communication is off
Stephan Diestelhorst
stephan.diestelhorst at gmail.com
Wed Sep 21 09:10:06 UTC 2011
https://bugs.kde.org/show_bug.cgi?id=282346
--- Comment #2 from Stephan Diestelhorst <stephan diestelhorst gmail com> 2011-09-21 09:10:05 ---
Digging through the code, and using GDB, I confirmed the following
flow of code (on 4.7.0):
bool IncidenceChanger::Private::performChange
( Change *change ) at calendarsupport/incidencechanger.cpp:99
CalendarSupport::IncidenceChanger::Private::changeIncidenceFinished
(this=0xc81910,) at calendarsupport/incidencechanger.cpp:233
CalendarSupport::InvitationHandler::sendIncidenceModifiedMessage
(this=0x7fffffffcfc0, method=KCalCore::iTIPRequest,
incidence=..., attendeeStatusChanged=false) at
calendarsupport/next/invitationhandler.cpp:374
Interestingly, IncidenceChanger::Private::performChange
(calendarsupport/incidencechanger.cpp) contains all the proper logic:
it checks KCalPrefs::instance()->mUseGroupwareCommunication and then
displays a message box, if I am not the organiser of an event, via
InvitationHandler::handleIncidenceAboutToBeModified
(calendarsupport/next/invitationhandler.cpp)
However, it seems the logic has been duplicated and split to handle
asynchronous Akonadi interaction through new Akonadi::ItemModifyJob(...)
and then void IncidenceChanger::Private::changeIncidenceFinished( KJob *j ).
That function does not check for the mUseGroupwareCommunication flag,
nor does it present the user with a dialog box when he is not the organiser.
Through handler.sendIncidenceModifiedMessage(...) which eventually
ends up calling
...
} else {
return d->sentInvitation( KMessageBox::Yes, incidence, method );
}
sending out invitations, although the user is not the organiser nor has group-
communication enabled and never has a chance to intercept.
Adding an additional check for the groupware flag and asking the user
in changeIncidenceFinished once again would b straight-forward. Any
preference?
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Korganizer-devel
mailing list