Bug #99864 Password vault gets corrupted
Submitted: 13 Jun 2020 4:14 Modified: 13 Jun 2020 16:34
Reporter: David Gilman Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:8.0.20 CE OS:Windows
Assigned to: CPU Architecture:ARM

[13 Jun 2020 4:14] David Gilman
Description:
Anything using saved passwords in the vault periodically fails with corrupted vault. Reset, restore password. It works. This started happening with recent Windows 10 Pro update to 19041.329.

How to repeat:
Easiest is to start a connection from Workbench. If it works, close Workbench and try again. After boot I also get the message from Notifier 1.1.8.
[13 Jun 2020 5:17] MySQL Verification Team
Thank you for the bug report. I couldn't repeat, below the log:

02:13:19 [INF][      Workbench]: UI is up
02:13:19 [INF][      Workbench]: Running the application
02:13:21 [INF][SQL Editor Form]: Opened connection 'Local instance MySQL80' to MySQL Community Server - GPL version 8.0.20
02:13:21 [INF][        WQE.net]: Launching SQL IDE
02:13:21 [INF][        WQE.net]: SQL IDE UI is ready
[13 Jun 2020 16:34] David Gilman
Key additional info:
8.0.20 CE was installed. Windows 10 Pro upgraded to 19041.329 (Feature update). Problem with vault immediately began to occur (and still exists).

Example of error (from MySQL for Excel):

Exception message:
Key not valid for use in specified state.

Exception thrown by:
MySqlWorkbenchPasswordVault.LoadPasswords

Stack trace:
   at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
   at MySql.Utility.Classes.MySqlWorkbench.MySqlWorkbenchPasswordVault.LoadPasswords(Boolean useWorkbenchPasswordsFile)
[13 Jun 2020 17:30] MySQL Verification Team
Excel connected using vault password

Attachment: 99864.png (image/png, text), 32.72 KiB.