failed RemoveMatch sends error after return (protocol violation)
Submitted by Matthijs van Duin
Assigned to D-Bus Maintainers
When RemoveMatch fails, it sends a org.freedesktop.DBus.Error.MatchRuleNotFound error after first sending a normal method return. As a result, clients are unable to determine that RemoveMatch failed.
Example: ~$ dbus-send --dest=org.freedesktop.DBus --print-reply / org.freedesktop.DBus.RemoveMatch string:"" method return time=1495590462.736592 sender=org.freedesktop.DBus -> destination=:1.255 serial=3 reply_serial=2
Monitoring the bus while performing the above reveals that an error reply is also sent, but the client of course discards it.
dbus 1.10.18 and 1.11.12 tested