Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finding an exported object with introspection not working anymore in 3.2.1 #103

Closed
AsamK opened this issue May 15, 2020 · 0 comments · Fixed by #104
Closed

Finding an exported object with introspection not working anymore in 3.2.1 #103

AsamK opened this issue May 15, 2020 · 0 comments · Fixed by #104

Comments

@AsamK
Copy link
Contributor

AsamK commented May 15, 2020

When exporting an object with an objectPath with more than one level (e.g. /org/example/Path), the object can't be found with introspection anymore. This used to work with version 3.2.0.

Example:

DBusConnection conn = DBusConnection.getConnection(DBusConnection.DBusBusType.SESSION);
conn.requestBusName("org.example.java.dbus");
ExportClass ex = new ExportClass();
conn.exportObject("/org/example/Path", ex);

When inspecting the root object with:

qdbus org.example.java.dbus / org.freedesktop.DBus.Introspectable.Introspect

a service running with version 3.2.1 doesn't show the org node:

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/">
</node>

a service using version 3.2.0 worked as expected:

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/">
<node name="org"/>
</node>

Might be related to this bugfix: 93c512f

AsamK added a commit to AsamK/dbus-java-1 that referenced this issue May 16, 2020
instead of ignoring all intermediate TreeNodes during Introspection

Fixes hypfvieh#103
And adapts the fix for hypfvieh#80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant