mail-notification is unable to retrieve passwords when keyring database name contains diacritics

Bug #655546 reported by Bunio_FH
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mail Notification
New
Undecided
Unassigned

Bug Description

In polish default database name is "Domyślna" which causes gnome-keyring daemon to identify dbus paths as (dbus-monitor dump) in example:

method return sender=:1.3 -> dest=:1.166 reply_serial=5
   array [
      object path "/org/freedesktop/secrets/collection/domy_c5_9blna/3"
   ]
   array [
   ]

then GetSecrets is called:

method call sender=:1.166 -> dest=org.freedesktop.secrets serial=15 path=/org/freedesktop/secrets; interface=org.freedesktop.Secret.Service; member=GetSecrets
   array [
      object path "/org/freedesktop/secrets/collection/domy_c5_9blna/3"
   ]
   object path "/org/freedesktop/secrets/session/s13"

which receives a proper response (***), but right after that it tries to obtain dbus properties with a wrong path:

method call sender=:1.166 -> dest=org.freedesktop.secrets serial=20 path=/org/freedesktop/secrets/collection/domy_ffffffc5_ffffff9blna/3; interface=org.freedesktop.DBus.Properties; member=Get
   string "org.freedesktop.Secret.Item"
   string "Attributes"

which of course is met with:

error sender=:1.3 -> dest=:1.166 error_name=org.freedesktop.Secret.Error.NoSuchObject reply_serial=20
   string "The '/org/freedesktop/secrets/collection/domy_ffffffc5_ffffff9blna/3' object does not exist"

this causes mail-notification to be unable to save passwords and causes it to ask for a password every time it tries to check the e-mail. I came up with a quick workaround which is changing the actual path to the database:

killall -9 gnome-keyring-daemon mail-notification
mv ~/.gnome2/keyrings/$(cat ~/.gnome2/keyrings/default).keyring ~/.gnome2/keyrings/default.keyring
echo -n "default" > ~/.gnome2/keyrings/default
mail-notification &

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.