Bug 501233 - kwallet-query can read, but the writing to wallet silently fails
Summary: kwallet-query can read, but the writing to wallet silently fails
Status: RESOLVED DUPLICATE of bug 491898
Alias: None
Product: kde-cli-tools
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-08 17:19 UTC by Mehrad Mahmoudian
Modified: 2025-09-06 19:54 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mehrad Mahmoudian 2025-03-08 17:19:19 UTC
SUMMARY
The `kwallet-query` is a simple tool and is suppose to do thee things:
1. listing entries (work)
2. reading password of an entry (works)
3. writing a new entry(does not work).

STEPS TO REPRODUCE
1. try to add an entry `kwallet-query --write-password 'foo' kdewallet --verbose <<< "bar"`
2. it says it has successfully written the entry
3. use KWalletManager or  use CLI to check if writing was successful: `kwallet-query --list-entries kdewallet`

OBSERVED RESULT
The `foo` entry does not exist in the wallet

EXPECTED RESULT
the `foo` entry with the password of `bar` is created in the `Passwords` folder of the wallet.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.17-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 20 × Intel® Core™ i9-10900K CPU @ 3.70GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630

ADDITIONAL INFORMATION
Comment 1 John Kizer 2025-03-25 18:54:32 UTC
Hi - just to check, does adding an entry work for you if you explicitly specify the folder as well, using that --folder option? ex. kwallet-query --write-password foo kdewallet --folder Passwords
Comment 2 Mehrad Mahmoudian 2025-03-31 11:51:20 UTC
(In reply to John Kizer from comment #1)
> Hi - just to check, does adding an entry work for you if you explicitly
> specify the folder as well, using that --folder option? ex. kwallet-query
> --write-password foo kdewallet --folder Passwords

No it does not change the situation. The following is the code I ran and the result I got (for privacy reasons some stuff was replaced with "XXX"):

[mehrad@host:~] [14:48:04]
❯ kwallet-query --write-password 'foo' kdewallet --verbose --folder 'Passwords' <<< "bar"
timer event
standby opening wallet  "kdewallet"
writing "foo" to "Passwords" to "kdewallet"

[mehrad@host:~] [14:48:21]
❯ kwallet-query --list-entries kdewallet --folder 'Passwords'
ipp-localhost:-1
smb-XXX.XXX.XXX.XX:-1
smb-XXX

[mehrad@host:~] [14:48:24]
❯
Comment 3 Tristan Miller 2025-09-06 19:54:21 UTC

*** This bug has been marked as a duplicate of bug 491898 ***