Bug 458737 - Unable to remove a Secret Service alias using D-BUS
Summary: Unable to remove a Secret Service alias using D-BUS
Status: CONFIRMED
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.97.0
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-05 10:02 UTC by Julien HENRY
Modified: 2022-09-06 07:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien HENRY 2022-09-05 10:02:46 UTC
I was testing the Secret Service D-BUS implementation (provided by https://invent.kde.org/frameworks/kwallet/-/merge_requests/11).

I have added a new alias using:

    gdbus call --session --dest org.freedesktop.secrets --object-path /org/freedesktop/secrets --method org.freedesktop.Secret.Service.SetAlias test /org/freedesktop/secrets/collection/kdewallet


It worked fine. I could see the alias created using qdbusviewer-qt5.
Also the alias was in ~/.config/kwalletrc:

    [org.freedesktop.secrets.aliases]
    test=kdewallet


After this test, I wanted to remove the alias. According to the spec (https://specifications.freedesktop.org/secret-service/latest/re01.html), deleting an alias should be done using the special value '/'.
So I tried many variations of:

    gdbus call --session --dest org.freedesktop.secrets --object-path /org/freedesktop/secrets --method org.freedesktop.Secret.Service.SetAlias test /

But the alias was never removed.

Workaround: I had to manually remove it from the kwalletrc file.

Linux/KDE Plasma: Fedora 36
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version:  5.15.5
Comment 1 michaelk83 2022-09-06 07:04:53 UTC
Can confirm on KDE Neon User 20220825-0951 live DVD.