Don't assert if used incorrectly from dbus
ClosedPublic

Authored by graesslin on Jan 24 2018, 5:01 PM.

Details

Summary

The component dbus interface allowed to remote kill the wayland session
by sending an incorrect request to the kglobalaccel dbus interface.

There is no point in asserting, the code must be able to handle error
cases and also is able to handle them.

BUG: 389375
FIXED-IN: 5.43

Diff Detail

Repository
R268 KGlobalAccel
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin created this revision.Jan 24 2018, 5:01 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJan 24 2018, 5:01 PM
graesslin requested review of this revision.Jan 24 2018, 5:01 PM
romangg added inline comments.
src/runtime/component.cpp
250–251

Also always false.

graesslin updated this revision to Diff 26098.Jan 28 2018, 9:00 AM

Remove the usless assert Roman found

apol accepted this revision.Feb 22 2018, 1:44 AM
This revision is now accepted and ready to land.Feb 22 2018, 1:44 AM
romangg accepted this revision.Feb 24 2018, 8:13 PM
This revision was automatically updated to reflect the committed changes.