Bug #100282 Old snippets are overwritten when saving new ones
Submitted: 21 Jul 2020 20:14 Modified: 24 Jul 2020 11:04
Reporter: Marcin Majda Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:8.0.20, 8.0.21 OS:Ubuntu (20.04)
Assigned to: CPU Architecture:x86
Tags: snippets

[21 Jul 2020 20:14] Marcin Majda
Description:
When adding new snippet using "Add Snippet from editor content" option, old snippet which was previously on the top of the list will be overwritten on save.

How to repeat:
Prerequisites: empty snippets list

1. Write in editor window: "AAAA"
2. Right click in Snippet tab and select "Add Snippet from editor content" option 
3. Set name of snippet to "AAAA" and click Done - snippet should be successfully saved.

4. Write in editor window: "BBBBB"
5. Right click in Snippet tab and select "Add Snippet from editor content" option - new snippet currently without a name should show at the top of the list. Set name to "BBBBB".
5. Click Done

6. Open first snippet - it will have Content set to "BBBB".
[21 Jul 2020 20:21] Marcin Majda
demo

Attachment: Peek 2020-07-21 22-20.mp4 (video/mp4, text), 430.72 KiB.

[24 Jul 2020 11:04] MySQL Verification Team
Hello Mar Maj,

Thank you for the bug report.
Observed this issue on Windows 10 with MySQL Workbench 8.0.21.

Regards,
Ashwini Patil
[24 Jul 2020 11:06] MySQL Verification Team
8.0.21 test results

Attachment: 100282_test_results.png (image/png, text), 258.63 KiB.