Fixed problems with introspection, the path names and structure were not#140
Fixed problems with introspection, the path names and structure were not#140dashxdr wants to merge 1 commit intosidorares:masterfrom
Conversation
correct and didn't allow for proper recursion. Now the path names for all child nodes have names relative to the path specified in the query, and are provided with a null node placeholder entry so they appear in the xml, and the caller can then recursively scan as desired. The code could probably be made more efficient with fewer checks for exceptions.
|
Hi @dashxdr ! I think I understand the issue, but could you provide step-by-step example where old code would fail? |
|
Here is an example, it mimics the ofono dbus interface (just a little). It can be placed in the node-dbus/test directory. When you run it you can test functionality with this: To verify some instrospection functionality do this first: NOW to cause the failure, add the --recurse onto the query: ... etc With my version we get this for both queries, which is what we want: |
|
One other note, you need to make sure your permissions are set to allow queries on the system dbus, I'm a little hazy on the details. Here is my /etc/dbus-1/system.d/ofono.conf file if it helps... |
|
thanks! I'll try to have a look soon ( there is a huge backlog on this project I never had enough time to action ) |
|
Also affected by this bug. Any chance this can be merged & fixed please? |
correct and didn't allow for proper recursion. Now the path names for all
child nodes have names relative to the path specified in the query, and are
provided with a null node placeholder entry so they appear in the xml, and
the caller can then recursively scan as desired.
The code could probably be made more efficient with fewer checks for
exceptions.