GNOME Bugzilla – Bug 743563
On File Open: No Warning of Mismatched File Extension with File Format
Last modified: 2018-05-22 14:15:50 UTC
In the title bar of gnumeric it is confusing to see a file name that has the file extension xls even though the file format might be something totally different. ie) gnumeric Consequently if sending an email, it will appear as though an xls file format is being sent although in actuality a gnumeric file format is being sent and the recipient will likely only see garbage. Suggested warning message on file open: The file extension on the file you are viewing does not match the file format. Please correct this discrepancy with one of the following: * File >> Save As... * Data >> Export Data
We warn on mismatched save. Why isn't that good enough?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!
Without triggering "Save As" Gnumeric does not warn on: File >> Save Nor does it warn on: File >> Open So as not to hide the underlying file format I recommend all 3 of these places check for the mismatched file. This way you will be warned of the mismatch any time you: * save a file * open a file As is you are only warned 1 time - the first time triggering: File >> Save As To Replicate: 1. Open a csv file in gnumeric 2. Save the file as gnumeric file type and keep the csv extension 3. Press Ctrl S or choose the "Save" option from the file menu (no warning) Replicate Again With: 4. Close the file above. 5. Open the same file (no warning again) Outcome: Looks like you are working on a csv file even if you are not. It becomes easy to confuse the end user unless every time a user does: File >> Save As
2. Save the file as gnumeric file type and keep the csv extension That produces a warning (because Save is treated as Save-As). So someone has actively chosen to enter into the situation after we warned about it. I really don't see why you want further warnings. That will just teach people to dismiss warning dialogs without reading them.
When I receive a file from a person named "file.csv" open it with gnumeric then edit then save then send to another person, gnumeric will never check for the mismatched file extension anywhere in that entire process. Consequently, if the person I sent the file to does not have gnumeric, all they will see is garbage. On the other hand, if they do have gnumeric they will not be warned of the mismatch either. If at least 1 warning can be guaranteed when opening a file received from a random location, it would eliminate the need for the end user to do File >> Save As every time just to check for the mismatch before forwarding the file!
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnumeric/issues/271.