Bug #49674 saving changes to config in admin section raises UAC dialog twice
Submitted: 14 Dec 2009 14:23 Modified: 20 Sep 2010 15:33
Reporter: Johannes Taxacher Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S3 (Non-critical)
Version:5.2.11 (pre-release-package) OS:Windows (win7 x64)
Assigned to: Alfredo Kojima CPU Architecture:Any

[14 Dec 2009 14:23] Johannes Taxacher
Description:
when applying changes to the mysql server config file, workbench raises UAC dialog to ask the user to elevate permissions to be able to write to the ini/cfg file. for some reason this dialog is initiated twice in a row.
additionally, the elevation-request also happens when writing to a cfg file that is located already in user-writable location (that shouldn't be necessary)

How to repeat:
- open admin section in wb
- go to config tab and make a change to config
- apply config
now workbench raises UAC dialog twice in a row

second case
- copy my.ini to  your desktop, change server profile in workbench to point to the copy in your desktop folder.
- open server instance in WB
- edit file and apply
workbench still initiates the UAC dialog
[10 Feb 2010 13:19] Maksym Yehorov
UAC raised twice cause we run two commands. First one is to create a backup and second is to put new config file.
[10 Sep 2010 5:57] Alfredo Kojima
This could be resolved by shipping a utility that would create the backup and write the file and running that utility instead of the 2 separate cmds.
[12 Sep 2010 23:22] Alfredo Kojima
Fixed by performing backup and temp file "commit" at once.
[20 Sep 2010 13:16] Johannes Taxacher
fixed in release 5.2.28
[20 Sep 2010 15:33] Tony Bedford
An entry has been added to the 5.2.28 changelog:

On Microsoft Windows, when saving a MySQL configuration file from within the Administrator, Windows displayed the UAC dialog twice.

MySQL Workbench has been changed so that Windows now only displays the UAC dialog once.