Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docx documents get suddenly corrupted #1185

Closed
hoegerl opened this issue Mar 18, 2021 · 8 comments
Closed

docx documents get suddenly corrupted #1185

hoegerl opened this issue Mar 18, 2021 · 8 comments
Labels
waiting feedback Issues that we waiting to be answered from author of issue

Comments

@hoegerl
Copy link

hoegerl commented Mar 18, 2021

Do you want to request a feature or report a bug?
-> bug report

What is the current behavior?
Some .docx files get suddenly corrupted. We're using NC20.0.8, onlyoffice/documentserver 6.2.0.123, ONLYOFFice-app 6.3.0.
The corrupted file also shows corrupted on another NC/onlyoffice instance.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
The file is beeing worked on by multiple users. The rendering of the file ends with an annotation comment. There is no repro for the bug. We could work on a docx document without problem. From one day to the other the file got corrupted.

We managed to get the file working again by opening it in MS Word, saving it as .doc. Then reopeneing the .doc file and save as .docx. From now on this file shows correct again in NC/onlyoffice editor.

What is the expected behavior?
docx documents don't get corrupted.

Did this work in previous versions of DocumentServer?
We had this error also in 5.x version.

DocumentServer version:
6.2.0.123

Operating System:
Unbuntu 18.04 LTS

Browser version:
Multiple, latest versions of Safari, Firefox, Chrome

I've edited the raw XML to anonymize the text-content of the attached file.
corrupted.docx

@ShockwaveNN
Copy link
Contributor

You've attached corrupted.docx file - is this file is the result of corruption or original document which was correupted after some actions?

Could you attach screenshot of error about corruption?
And take a look at logs at /var/log/onlyoffice/ for any error message with timestamp of corruption happened

@ShockwaveNN ShockwaveNN added the waiting feedback Issues that we waiting to be answered from author of issue label Mar 23, 2021
@hoegerl
Copy link
Author

hoegerl commented Mar 24, 2021

I did some more research on the behaviour since the circumstances & actions what lead to the corruption are unclear.
I have a 7MB large docx which is fine opening in MS Word locally. I upload this to nextcloud. I can download the document from nextcloud, it will be 7MB and working in MS Word (oo-corrupted_7mb_ms-word.png).
oo-corrupted_7mb_ms-word

I then open it in the oo-editor via Browser, and it only displays parts of the first page (oo-currupted_nextcloud_browser-editor.png).
oo-currupted_nextcloud_browser-editor
After this i download the file via Nextcloud and it still is 7MB and looks ok in MS Word.

Finally i open the document in the oo-editor again, and choose file -> download as -> docx and the file is only 37KB!

@ShockwaveNN
Copy link
Contributor

@hoegerl So judging by size of file - you've attached courreped version

Could you attach original one?
Maybe remove sensitive information, replace it with some other info, but error shall persist for file

@hoegerl
Copy link
Author

hoegerl commented Mar 24, 2021

Unfortunately i can not attach the original document since the whole document is confidential, In the meantime i try to shorten the document and see if the error still occurs. This way i would be able to anonymize the short document and upload it.

@ShockwaveNN
Copy link
Contributor

ShockwaveNN commented Mar 24, 2021

@hoegerl Ok thanks, we'll waiting for some document from you, because without file I don't think to be able to catch your bug

@ShockwaveNN
Copy link
Contributor

This issue was closed due to no response.

If you'll able to add some file - I'll reopen this issue

@adsche
Copy link

adsche commented Oct 2, 2024

Dear @ShockwaveNN , we have experienced the same problem multiple times with different Powerpoint presentations.

I've attached a minimal example that opens fine in Powerpoint, opens fine in ONLYOFFICE when uploaded to Nextcloud, but is defect when downloaded again via "File > Download As > PPTX". It still works fine if downloaded directly from Nextcloud.

This is with Docker image docker.io/onlyoffice/documentserver:latest, Nextcloud 29.0.7 and the ONLYOFFICE Nextcloud App version 9.4.0 (but I suspect this could also be triggered without Nextcoud at all).

Reduced-6.pptx

Defect file downloaded from ONLYOFFICE:
Reduced-6-dl.pptx

My initial assessment as a layperson: The slide contains an animation referencing (as far as I can tell) an object that isn't there anymore. So it is somewhat gone bad, but this was not "crafted" this way, users somehow end up in this situation by normal Powerpoint use and, more importantly, the file still works fine in Powerpoint.

@Rita-Bubnova
Copy link
Member

Hello, @adsche.
This is new issue #2914.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting feedback Issues that we waiting to be answered from author of issue
Projects
None yet
Development

No branches or pull requests

4 participants