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

Make interface header optional on method calls #163

Open
izak opened this issue Jun 11, 2024 · 1 comment
Open

Make interface header optional on method calls #163

izak opened this issue Jun 11, 2024 · 1 comment

Comments

@izak
Copy link

izak commented Jun 11, 2024

When migrating some code from dbus-python, I ran into this exception:

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: None.GetValue with signature "" could not be found

It turns out that the other end is calling a method without specifying the interface. While this can be worked around by fixing the other end and always specifying an interface, it should be trivial to adapt the _matches method of a message, probably here, to ignore the interface if it is None.

izak added a commit to izak/python-dbus-next that referenced this issue Jun 11, 2024
The dbus spec allows the interface to be optional on
method calls. In that case, allow the message to match
on any method with a matching name and signature.

altdesktop#163
@izak
Copy link
Author

izak commented Jun 12, 2024

I went about fixing it slightly differently, more explicitly calling _matches from the message_bus module without an interface when it is None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant