Bug 52355 - dbus-send: incorrect error message when bad arguments are passed to method
Summary: dbus-send: incorrect error message when bad arguments are passed to method
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Havoc Pennington
QA Contact:
Depends on:
Reported: 2012-07-22 09:05 UTC by Kerrick Staley
Modified: 2012-07-22 21:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Kerrick Staley 2012-07-22 09:05:38 UTC
When I pass the wrong arguments to a method:

dbus-send --print-reply --dest=org.gnome.Shell /org/gnome/Shell
org.freedesktop.DBus.Properties.Set string:org.gnome.Shell
string:OverviewActive boolean:true

it gives the error

Error org.freedesktop.DBus.Error.UnknownMethod: No such interface
`org.freedesktop.DBus.Properties' on object at path /org/gnome/Shell

This error message makes no sense. For the record, the correct command uses variant:boolean:true instead of boolean:true.
Comment 1 Simon McVittie 2012-07-22 13:07:41 UTC
Not a dbus-send bug. If you look at dbus-monitor while doing this, you'll see that the error message and the machine-readable error name come from the Shell - dbus-send just prints it.

This is a bug in either Shell or whatever D-Bus binding it uses. It's detecting the error "I don't have a method org.freedesktop.DBus.Properties.Set with arguments 'sb'" and assuming that that's because it doesn't have the interface at all.
Comment 2 Kerrick Staley 2012-07-22 21:28:43 UTC
I'm having trouble figuring out which project I should report the bug against. I grepped in the gnome-shell and dbus-glib source code, but neither contained the string "No such interface" (the string "No such" did appear several times in both, but it was always unrelated). Could you please give me a pointer as to which project might contain the bug?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.