-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Environment: Ubuntu, OpenJDK Runtime Environment 21.0.3+9-LTS
Only reproducible with Java 21
Description:
When you try and export a profile, the file->save dialog that appears has a view of folders and files. If you select one of the existing files, that file stays as the chosen file, even if you write a different name in the textbox, Droid tries to save using the existing name only. If you close the dialog and go into export again, the selection persists, thus making it unable to choose a new filename for export
Steps to reproduce
- Open droid
- Add a few files and run the results
- Now click on "Export"
- On the "Export profiles" dialog, leave all selections as default
- Click on the "Export profiles..." button
- In the file Save dialog, choose and folder and under files, select some file (e.g.
b.csvin the screenshot) - This file is now shown in the "Selection" textbox
- Edit the name in the selection textbox to be something else (e.g.
changed-to-b.csvin the screenshot) - Click "Save", you will see a "File exists warning" dialog, this is because it is trying to overwrite the previously selected file (
b.csv) - At this point there is no way of changing the filename to be saved as
I also ran the same version of Droid with Java 11 (OpenJDK Runtime Environment 11.0.25+9-post-Ubuntu-1ubuntu122.04)
All the steps above behave in the same way, however
From step 9 above if you carry on
9. Click "Save", you will see a "File exists warning" dialog, this is because it is trying to overwrite the previously selected file (b.csv)
10. Dismiss the dialog by saying "No"
11. Click in the selection textbox and then hit tab, the dialog updates the filter but also chooses the filename that you just typed
12. If you now click "OK", the export file is saved with a new name.
As future version will lose support for Java 11, this bug may be seen as higher severity in future
