When choosing "Save As" in the File menu, the resulting file dialog would default to the location of the currently opened file and pre-fill its file name. However, this does not work when the document I'm trying to Save As is a MS Office document (e.g. doc) that does not have an extension.
Steps to reproduce:
1.) Create a new document in LibreOffice Writer
2.) Save the document as "Microsoft Word 97-2003 (.doc)" file
3.) Remove the ".doc" file extension
4.) Open the document in LibreOffice Writer
5.) Click "Save As"
The file dialog opens (it also seems to take slightly longer to open than usually) in Home with "Untitled 1" as file name.
The file dialog opens in the location where the file is saved and the file is pre-selected, or (if not shown in the list because of filters) its file name pre-filled into the file name text field.
I noticed the window title is also "Untitled 1 - LibreOffice Writer" rather than the file name, so perhaps that's an issue in the underlying file reading/loading code.
It does not matter whether the location saved to contains spaces or other special characters.
It does not matter whether the "confirm when not saving as open document format" option is enabled.
It does not matter what default file type for saving text files (odt or doc or docx) was configured in Settings.
It does not matter what VCL plugin I use, both the kde and gtk3 dialogs show the same behavior.
This can also be reproduced with XLS files but they aren't recognized as such without their extension (only works if manually opened in soffice).
This can *not* be reproduced with DOCX or XLSX files but they aren't recognized as such without their extension (shared mime info thinks they're archives, which they area)
This can *not* be reproduced with ODT or ODS files.
This worked in LibreOffice 3.x (whatever was shipped in Ubuntu 12.04)
Bibisected on Linux 41max repo, had to skip some due to launch error and these three are the candidates:
They are all about file format detection.
Same behaviour on Windows as well (compared 3.5.0 to newer ones).