Skip to content

Unable to select a new name for export file when a name is already selected. #1167

@sparkhi

Description

@sparkhi

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

  1. Open droid
  2. Add a few files and run the results
  3. Now click on "Export"
  4. On the "Export profiles" dialog, leave all selections as default
  5. Click on the "Export profiles..." button
  6. In the file Save dialog, choose and folder and under files, select some file (e.g. b.csv in the screenshot)
  7. This file is now shown in the "Selection" textbox
  8. Edit the name in the selection textbox to be something else (e.g. changed-to-b.csv in the screenshot)
  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. 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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions