Bug 453113

Summary: kwalletmanager's `Import Encrypted` behavior is different from description on document
Product: [Applications] kwalletmanager Reporter: wrvsrx <wrvsrx>
Component: generalAssignee: Valentin Rusu <valir>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 22.04.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description wrvsrx 2022-04-28 03:55:48 UTC
SUMMARY

kwalletmanager's behaviour is different from description on document (https://docs.kde.org/stable5/en/kwalletmanager/kwallet5/index.html). As described in GPG encryption part (https://docs.kde.org/stable5/en/kwalletmanager/kwallet5/introduction.html#kwallet-create), we can use `Import Encrypted` to import encrypted wallet data into another wallet. However, it prompts "Wallet named <imported wallet name> already exists, Operation aborted", which means kwalletmanager's "Import Encrypted" will import the file as a separate wallet instead of importing to the selected wallet. It contradicts the description in documentation.


STEPS TO REPRODUCE
1. create two wallets named "a" and "b"
2. delete data in "b"
3. export "a" using "Export As Encrypted"
4. choose "b" and import exported file of "a" by "Import Encrypted"

OBSERVED RESULT

The error prompts.

EXPECTED RESULT

Data in "a" should be imported into "b".

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.17.4-arch1-1 (64-bit)
Graphics Platform: X11