<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - File Save: Calc uses wrong file extension when copying the name from a file with a different extension"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=130413">130413</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>File Save: Calc uses wrong file extension when copying the name from a file with a different extension
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>forseti@mailbox.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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:</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>