[Pkg-telepathy-maintainers] Bug#1010668: ofono: According documentation both methods org.ofono.Manager.GetModems and org.ofono.HandsfreeAudioManager.GetCards should return with signature array{object, dict}.
Emanoil Kotsev
deloptes at gmail.com
Fri May 6 13:44:40 BST 2022
Package: ofono
Version: 1.31-3
Severity: normal
Tags: upstream
Dear Maintainer,
* What led up to the situation?
I was trying to get list of modems and cards via d-bus when a modem and card are avialable
When my program initializes it should get those lists.
However I did not get the expected results when implementing logic for array{object,dict} and came to reporting this issue.
* What exactly did you do (or not do) that was effective (or
ineffective)?
According to specification both methods should return array{object,dict}
It was not possible to parse both with the same algorythm.
Performing a query agains ofono dbus service revealed that it is actually returning different structures.
qdbus --literal --system org.ofono / org.freedesktop.DBus.Introspectable.Introspect
<interface name="org.ofono.Manager"><method name="GetModems"><arg name="modems" type="a(oa{sv})" direction="out"/>
<interface name="org.ofono.HandsfreeAudioManager"><method name="GetCards"><arg name="cards" type="a{oa{sv}}" direction="out"/
* What was the outcome of this action?
dbus Intorspection returns GetModems a(oa{sv}) and GetCards a{oa{sv}}. This is most likely upstream but I do not know how to report this.
* What outcome did you expect instead?
I think both should return type="a(oa{sv})"
-- System Information:
Debian Release: 11.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-13-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages ofono depends on:
ii dbus 1.12.20-2
ii init-system-helpers 1.60
ii libc6 2.31-13+deb11u3
ii libdbus-1-3 1.12.20-2
ii libglib2.0-0 2.66.8-1
ii libudev1 247.3-7
ii lsb-base 11.1.0
Versions of packages ofono recommends:
ii udev 247.3-7
ofono suggests no packages.
-- no debconf information
More information about the Pkg-telepathy-maintainers
mailing list