Bug 459311

Summary: Impossible to create new vault with the same name as the previously deleted
Product: [Unmaintained] Plasma Vault Reporter: medin <med.medin.2014>
Component: generalAssignee: Ivan Čukić <ivan.cukic>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description medin 2022-09-18 08:53:12 UTC
If you create a vault named for example "PrivateVault" using cryfs algo, then remove it, so any attempt to create a new vault with the same name "PrivateVault" and same encryption location will fail with error code:
"Unable to perform the operation (error code 20)."
The problem is that after successfully deleting that vault, some traces still persist in "/home/user/.config/plasmavaultrc" and "/home/user/.local/share/cryfs/". Removing those traces will solve the problem.

Another problem is that if creation operation fails you will find some junk files in encryption location like "cryfs.config" and the mount target is created and some entries are added to "plasmavaultrc". "cryfs.config" file and the target mount location if they don't exist before should never be created if the creation operation fails.
Comment 1 medin 2022-09-18 08:54:11 UTC
Operating System: Manjaro Linux
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.7-1-MANJARO (64-bit)
Graphics Platform: X11
Comment 2 Nate Graham 2022-09-22 17:35:03 UTC

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