[Libreoffice-bugs] [Bug 130413] New: File Save: Calc uses wrong file extension when copying the name from a file with a different extension

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Feb 4 07:11:03 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=130413

            Bug ID: 130413
           Summary: File Save: Calc uses wrong file extension when copying
                    the name from a file with a different extension
           Product: LibreOffice
           Version: 6.4.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: forseti at mailbox.org

Description:
LibreOffice Calc uses the wrong file extension in this case:

1. Make sure there is an .ods file on your desktop like "target.ods". The
content doesn't matter. It can be an empty file.
2. Open a file like source.csv form your download directory. The content
doesn't matter
3. Open the file
4. Click file - save as and choose Excel 97-2003 .xls as file type.
5. Enter the character * into the file name and press enter to make the Windows
save as dialogue display all files in this folder.
6. Click on the file "target.ods" to fill the field "file name" with the value
"target.ods"
7. Now change the field "file name" to "target 2" (without extension)
8. Confirm that you want to save the file as an excel file.

Expected result:

LibreOffice should append the proper file extension ".xls" so the file will
have the name "target 2.xls"

Actual result:

The file is named "target 2.ods" but it is actually an .xls file.
Modern Microsoft Office applications like Excel 2019 will refuse to open this
file because to the wrong file extension.

This bug happened with LibreOffice Calc but other programs may be affected as
well. This may be an Windows only bug.

Steps to Reproduce:
1. Make sure there is an .ods file on your desktop like "target.ods". The
content doesn't matter. It can be an empty file.
2. Open a file like source.csv form your download directory. The content
doesn't matter.
3. Open the file
4. Click file - save as and choose Excel 97-2003 .xls as file type.
5. Enter the character * into the file name and press enter to make the Windows
save as dialogue display all files in this folder.
6. Click on the file "target.ods" to fill the field "file name" with the value
"target.ods"
7. Now change the field "file name" to "target 2" (without extension)
8. Confirm that you want to save the file as an excel file.

Actual Results:
The file is named "target 2.ods" but it is actually an .xls file.
Modern Microsoft Office applications like Excel 2019 will refuse to open this
file because to the wrong file extension.

Expected Results:
LibreOffice should append the proper file extension ".xls" so the file will
have the name "target 2.xls"


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200204/64317c02/attachment.htm>


More information about the Libreoffice-bugs mailing list