vscode-cosmosdb
vscode-cosmosdb copied to clipboard
Fail to delete a PostgreSQL server
OS: Win10 Build Version: 20220514.1
Repro Steps:
- Right click a PostgreSQL server -> Click "Delete...".
- .Check whether succeeds to delete a PostgreSQL server.
Expect: Succeed to delete a PostgreSQL server.
Actual:
Fail to delete a PostgreSQL server.
This seems to be an issue with keytar. The server still actually deletes successfully, but the password isn't being correctly deleted. We could suppress the JSON parsing error for now.
We could suppress the JSON parsing error for now.
We should consult the rest of the team, but that sounds good to me. It might be nice to have a better understanding of the keytar issues though.
Related to https://github.com/microsoft/vscode-azurestorage/issues/1045 (since it's all keytar related)
Here is the fix for Storage
I believe this has been fixed. The extension has replaced keytar with vscode secret storage module.
@JasonYeMSFT This issue also reproduces on the build 20230920.5.
An error occurs after deleting a PostgreSQL account.
The PostgreSQL account disappears after refreshing the Resource view.
I may have misunderstood the status of the migration to secretStorage. The work is done but the latest release is still using keytar (I thought it isn't). We don't have any migration code in place so it would be a little bizarre for people who just upgraded to 0.20.0. I'll make sure at least it doesn't have any consequences and won't block users.
I tried but I am not able to reproduce this issue. From the code point of view, this could happen if there are is a concurrently execution that attempts to read that node which has been partially destroyed. I will close this issue for now given that the consequence is small and the deletion does complete.