Bug Hunting Session
Bug 111201 - Typed file extension should overwrite filetype set in dialog
Summary: Typed file extension should overwrite filetype set in dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.0.0.0.alpha0+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: File-Dialog Unify-Across-Apps
  Show dependency treegraph
 
Reported: 2017-08-02 22:39 UTC by Yousuf Philips (jay) (retired)
Modified: 2018-10-24 11:12 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2017-08-02 22:39:24 UTC
Opening this bug as the user error behaviour mentioned in bug 99639 only happens in Windows and not Linux and they should be the same.

Steps
1. Open Writer
2. Ctrl + S
3. Replace the file extension .odt with .docx and dont change the 'save as type' drop down from its default 'ODF Text Document...' entry
4. File is saved in odf format
Comment 1 Aron Budea 2017-08-03 03:35:19 UTC
This is basically bug 93199, right?
Comment 2 Heiko Tietze 2017-08-03 07:49:37 UTC
That's how Linux works. You can label a file foo.doc.odt and the user is supposed to be smart enough to work without automatic adjustments. WF in my opinion.
Comment 3 Xisco Faulí 2017-08-03 09:00:10 UTC
I've seen this inconsistency in the past...
on Linux the export change to .odt if I change the name. However, on Windows, the output name will be foo.odt.xxx.
From my point of view, it's a bug as the behaviour is inconsistent across platforms.
Comment 4 Heiko Tietze 2017-08-03 09:06:28 UTC
(In reply to Xisco Faulí from comment #3)
> From my point of view, it's a bug as the behaviour is inconsistent across
> platforms.

It's how the platforms work, inconsistently. Windows hides the file extension and you see foo.doc while the actual extension is .odt. On the other hand, in case of raster graphics no one cares if a bmp file is called png because the application detects the format not trusting on the filename. And LibreOffice is capable of that too.
Comment 5 Yousuf Philips (jay) (retired) 2017-08-03 12:55:22 UTC
(In reply to Aron Budea from comment #1)
> This is basically bug 93199, right?

Guess it is.

(In reply to Heiko Tietze from comment #4)
> It's how the platforms work, inconsistently.

Doesnt mean that we cant fix this issue specifically to Windows for the save dialog, as we have users who are using LO cross-platform and falling over this issue.

On Windows, i can change the filetype of the open dialog to only show .docx files, but if i type the name of a .odt file in the filename field, it will pick it, though it still tries to load it as a .docx file. ;D

> Windows hides the file
> extension and you see foo.doc while the actual extension is .odt. On the
> other hand, in case of raster graphics no one cares if a bmp file is called
> png because the application detects the format not trusting on the filename.
> And LibreOffice is capable of that too.

Hiding of file extensions isnt relevant, as you can easily enable the showing of file extensions.
Comment 6 Buovjaga 2018-03-03 19:02:46 UTC
*** Bug 115229 has been marked as a duplicate of this bug. ***
Comment 7 Buovjaga 2018-03-03 19:04:29 UTC
(In reply to Buovjaga from comment #6)
> *** Bug 115229 has been marked as a duplicate of this bug. ***

Sorry, this was a mistake as Jay's report is against Windows.
Comment 8 Xisco Faulí 2018-10-24 11:12:14 UTC
Let's put this one to NEW