Note #2025-04-11-002

Srijan Choudhary Srijan Choudhary
> Reply to Issues · jeanparpaillon/erlang-dbus · GitHub

Error when introspection results have a root node element without name attribute

The name attribute is optional for the root node element in introspection results.

From https://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format :

Only the root <node> element can omit the node name, as it's known to be the object that was introspected. If the root <node> does have a name attribute, it must be an absolute object path. If child <node> have object paths, they must be relative.

When writing a test case for another issue, I found that dbus services written using C++ QT Dbus library can cause this issue.

I will raise a pull request to fix both of these issues including test cases.

Interactions