Contradiction in bus names naming in D-Bus spec

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Sun Jan 31 23:56:43 UTC 2021


On Sun, 31 Jan 2021 23:11:07 +0100, Bogdan Lotko wrote:

> Much more interesting question is are the  "a." or ".a" legal?

    >>> dbussy.validate_bus_name("a.")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/ldo/projects/dbussy/dbussy.py", line 5826, in validate_bus_name
        my_error.raise_if_set()
      File "/home/ldo/projects/dbussy/dbussy.py", line 5035, in raise_if_set
        raise DBusError(self.name, self.message)
    dbussy.DBusError: org.freedesktop.DBus.Error.InvalidArgs -- Bus name was not valid: 'a.'
    >>> dbussy.validate_bus_name(".b")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/ldo/projects/dbussy/dbussy.py", line 5826, in validate_bus_name
        my_error.raise_if_set()
      File "/home/ldo/projects/dbussy/dbussy.py", line 5035, in raise_if_set
        raise DBusError(self.name, self.message)
    dbussy.DBusError: org.freedesktop.DBus.Error.InvalidArgs -- Bus name was not valid: '.b'

Nope.


More information about the dbus mailing list