ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.67k stars 314 forks source link

Mimetype of docx changes when content is added #1323

Open pwfraley opened 1 year ago

pwfraley commented 1 year ago

This issue is unique.

Operating System

Linux (RPM package)

Version information

7.4.0.163

Expected Behavior

I expect the Mimetype to stay the same, whether the document is empty or it contains text

Actual Behavior

Empty Documents are saved with the Mimetype: Dokument1.docx: Microsoft Word 2007+ Dokument1.docx: application/vnd.openxmlformats-officedocument.wordprocessingml.document

Documents containing text are saved with the following mimetype: Dokument1.docx: Zip archive data, at least v2.0 to extract, compression method=store Dokument1.docx: application/zip

Reproduction Steps

  1. Start OnlyOffice
  2. Create Empty Document
  3. Save Empty Document4. Close OnlyOffice
  4. Open Terminal file Document1.docx
  5. Dokument1.docx: Microsoft Word 2007+ file --mime-type Document1.docx
  6. Dokument1.docx: application/vnd.openxmlformats-officedocument.wordprocessingml.document
  7. Open the previous Document with OnlyOffice
  8. Type in some Text (Hello World!)
  9. Save Document
  10. close OnlyOffice
  11. file Document1.docx Dokument1.docx: Zip archive data, at least v2.0 to extract, compression method=store
  12. file --mime-type Document1.docx Dokument1.docx: application/zip

Additional information

OS: Fedora 38 Versions Tested: RPM and Flatpak 7.4.0.163 (rpm or flatpak)

pwfraley commented 1 year ago

This also happens with the onlyoffice document server docker image, with Nextcloud. The Mimetype there is also changed when content is added to the document.

XDmitryK commented 1 year ago

@pwfraley Hi I can confirm - this is bug, issue 63355 in our internal issue tracker. Thank you for report.