Public bug reported:

Binary package hint: network-manager

I was trying to see what I could do with NetworkManager
(0.6.6-0ubuntu5.8.04.1) through dbus in Ubuntu Hardy Heron 8.04.2. In
"docs/NetworkManager DBUS API.txt" in the source, the first method
listed is getDevices() which works as expected:

$ dbus-send --system --print-reply --type=method_call \
> --dest="org.freedesktop.NetworkManager" \
> /org/freedesktop/NetworkManager \
> org.freedesktop.NetworkManager.getDevices
method return sender=:1.0 -> dest=:1.92 reply_serial=2
   array [
      object path "/org/freedesktop/NetworkManager/Devices/wlan0"
      object path "/org/freedesktop/NetworkManager/Devices/eth0"
   ]

The next method it lists, is getActiveDevice:

$ dbus-send --system --print-reply --type=method_call \
> --dest="org.freedesktop.NetworkManager" \
> /org/freedesktop/NetworkManager \
> org.freedesktop.NetworkManager.getActiveDevice
Error org.freedesktop.DBus.Error.UnknownMethod: Method "getActiveDevice" with 
signature "" on interface "org.freedesktop.NetworkManager" doesn't exist

Furthermore, even though the getDevices method exists, and works,
Introspecting doesn't return any methods at all, only two nodes.

$ dbus-send --system --print-reply --type=method_call 
--dest="org.freedesktop.NetworkManager" /org/freedesktop/NetworkManager 
org.freedesktop.DBus.Introspectable.Introspect
method return sender=:1.0 -> dest=:1.125 reply_serial=2
   string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object 
Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
<node>
  <node name="Devices"/>
  <node name="VPNConnections"/>
</node>
"

In Ubuntu Intrepid, that command lists several methods, signals and
properties...

** Affects: network-manager (Ubuntu)
     Importance: Undecided
         Status: New

-- 
NetworkManager not honoring its dbus api
https://bugs.launchpad.net/bugs/377374
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to