Bug #92104 Not selecting a folder will select a file instead
Submitted: 21 Aug 2018 14:35 Modified: 17 Dec 2018 15:11
Reporter: Arthur Duarte Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S3 (Non-critical)
Version:8.0.12 OS:Ubuntu (Lubuntu 18.04)
Assigned to: CPU Architecture:x86
Tags: mysqlbackup, workbench

[21 Aug 2018 14:35] Arthur Duarte
Description:
Whenever I use a field that allows me to browse and select a folder, such as MySQL Enterprise - Online Backup - Options - Backup Storage Directory, or Restore - Restore from a folder containing a MySQL Backup, navigating to a folder and not choosing anything will choose the previous folder's last listed item.

For instance, suppose the path I have is /backups/dump1/today/
If I navigate to it and press ok without selecting anything, the box will show /backups/dump1/lastfile.ext

How to repeat:
1 - Click Online Backup, under Mysql Enterprise;
2 - Either create a New Job or Configure Job;
3 - Click the Options tab
4 - Click the Browse button
5 - Navigate to any folder. Select nothing. Press OK.

OR

1 - Click Restore, under Mysql Enterprise
2 - Select Restore from a folder containing a MySQL Backup. Click Next.
3 - Navigate to any folder. Select nothing. Press OK.

Suggested fix:
Instead of choosing the last file of the previous folder, it should select the currently shown folder.
[5 Sep 2018 12:41] MySQL Verification Team
Hello Arthur,

Thank you for the report and feedback.
I tried to follow your exact steps using MySQL Workbench Commercial (Proprietary) for Linux/Unix version 8.0.12 SE build 13312926 (64 bit) and MySQL Server version: 8.0.12-commercial MySQL Enterprise Server - Commercial on Ubuntu 18.04 LTS (Bionic Beaver) but not seeing reported issue i.e it is selecting the "folder" and not the "file". Could you please provide your environment details, unaltered Wb log file? Thank you!

Also, no issues noted when attempted on Win7 with WB 8.0.12 commercial version.

regards,
Umesh
[5 Sep 2018 14:32] Arthur Duarte
Step 1, navigate to the folder, DO NOT SELECT anything, press ok

Attachment: 2018-09-05-113026_1440x900_scrot.png (image/png, text), 191.91 KiB.

[5 Sep 2018 14:33] Arthur Duarte
Result of doing so

Attachment: 2018-09-05-113029_1440x900_scrot.png (image/png, text), 185.03 KiB.

[5 Sep 2018 14:35] Arthur Duarte
I'm on a Lubuntu 18.04 machine, my Workbench is 8.0.12 build 13312926 SE (64 bits) Commercial.

I've added screenshots of how it happens to me. Notice that I click OK without having anything selected at all. That, for some reason, selects the last item of the previous folder, which does not exist in the folder I navigated to.
[6 Sep 2018 11:07] MySQL Verification Team
Thank you for the feedback, screenshots. 
Issue is observed *only* when MySQL Server is running on remote host i.e MySQL Workbench Commercial (Proprietary) on "A" server, MySQL Server(Server version: 8.0.12-commercial MySQL Enterprise Server - Commercial) is on remote i.e "B" server(Connection method is TCP/IP over SSH and remote management is enabled). 

This issue is not seen when WB, MySQL Server hosted on same box.

regards,
Umesh
[14 Nov 2018 11:15] Miguel Tadeu Mota
Posted by developer:
 
commit id: 0255ef48ff08bef3c85c23435d88b62b2a6783a9
[17 Dec 2018 15:11] Christine Cole
Fixed as of the upcoming MySQL Workbench 8.0.14 release, and here's the changelog entry:

The last file selected from a previous directory during any browse
operation was carried over after navigating to a new directory and without
selecting a new file from the directory. Files now must be selected
explicitly within the browse dialog box.

Thank you for the bug report.