Contradiction in bus names naming in D-Bus spec

Igor Plastov chetverovod at gmail.com
Mon Feb 1 13:13:23 UTC 2021


~# python3 -ic "import dbussy"
>>> dbussy.validate_bus_name(":a")
True
>>>

пн, 1 февр. 2021 г. в 02:56, Lawrence D'Oliveiro <ldo at geek-central.gen.nz>:

> 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.
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dbus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20210201/15692dd0/attachment.htm>


More information about the dbus mailing list