[Authentication] Open Issue: Object Paths

Stef Walter stef-list at memberwebs.com
Fri Aug 14 20:37:35 PDT 2009


We need to finalize what our object paths in the DBus secrets API are
going to be.

There was discussion a while back, saying that we didn't need the full
/org/freedesktop/secrets namespace in our object paths. The suggestion
was that just the abbreviated object paths would do.

I've seen comments in eggdbus suggesting that (due to some semi-broken
DBus semantics) we should always use fully specified object paths. Full
context available in eggdbusconnection.c [1]. Snippet:

>    * So the D-Bus spec is slightly broken in this regard insofar that
>    * _broken_ programs like the above can trigger situations like
>    * these. The only possible remediation is to make services use a
>    * private namespace for their objects (e.g. the name
>    * com.example.Foo uses objects in the /com/example/Foo namsspace,
>    * ditto for com.example.Bar). Which, as a matter of fact, is what
>    * is recommended.  Still, there's a couple of services in the wild
>    * for which this is not true.


Mikkel Kamstrup Erlandsen also brought up something related on
desktop-devel-list at gnome.org:

> the only gotcha I found was the DBus path naming
> which should be all lower case according to the DBus naming
> conventions: http://dbus.freedesktop.org/doc/dbus-specification.html#naming-conventions.
> 
> So /org/freedesktop/Secrets -> /org/freedesktop/secrets

Any opinions? I don't claim to fully understand the intricacies of
object path naming, so unless someone speaks up I'll take the above two
comments as the gospel truth :)

Cheers,

Stef

[1]
http://cgit.freedesktop.org/~david/eggdbus/tree/src/eggdbus/eggdbusconnection.c#n357



More information about the Authentication mailing list