Closed arianvp closed 2 years ago
Hmmm the spec seems to suggest that indeed interface_name needs to be lower case https://varlink.org/Interface-Definition#grammar
I'll open a bug with systemd then
It's a known incompat of systemd's varlink logic and the original specs. I am not convinced we should change this nowadays though, it's API after all. Given that systemd is the only major user of varlink these days I am not too concerned that this is refused elsewhere.
Limiting the domains to lowercase is pretty arbitrary I would say, given that both cases are allowed for everything else.
(there's already a bug somewhere about this)
Ah super! thanks for the quick comment. I'll hunt down the duplicate bug (or if you can find it let me know); and then see if we can open a discussion on lfiting this limitation from the code generators.
Hunted down the issue for reference: https://github.com/systemd/systemd/issues/15952
Also fixed python: https://github.com/varlink/python/pull/28
I am not sure if this is a bug in your implementation or systemd not implementing the spec correctly
But systemd defines a varlink interface here:
https://systemd.io/USER_GROUP_API/
But this library fails to parse it with the following error:
Trial and error seems to suggest this library is choking over the fact that
UserDatabase
is capitalized in the interface name. Are interface definitions not allowed to have capital letters in them? Or is this a bug in this library?