-
Notifications
You must be signed in to change notification settings - Fork 668
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
Corrupted Microsoft Word files (docx) #3511
Comments
Can you upload a sample (correct) file somewhere that can be used for reproducing? |
I tried this , and does it well , I can open the .docx file. And if I believe in a .zip several .docx I can see them with no problem. Desktop v ownCloud-2.0.0.5308-nightly20150729-setup.exe, In WIN |
@marlemion This is a problem with your local setup then, not a client bug anyway. Something seems to recompress zip files. Which apps are installed on your owncloud server? |
@marlemion Also, if you upload zip files the same way, are they still identical? (same size/hash) |
Apps are pretty much standard: files, activities, calendar, contacts, images It happens to any zipped MS office file. But I can assure you that it also affects xlsx files. Just messed up a very important Excel file right now. Versioning back does not help. It used to work beforehand. So I could work on already uploaded files without any problem. But if I upload them or change the version, it corrupts the zip container. Normal zip files work. md5sum is different after upload as is the size (it is bigger). |
@marlemion |
@DeepDiver1975 @MorrisJobke any idea how to debug what repacks the file? |
Normal zip files remain original, i.e. no change in md5sums. |
Any virus scanners or other security solutions running locally? Are you syncing through a proxy?
So also docx files uploaded via web and then downloaded via web (no sync client involved) has this issue? |
No virus scanners. No proxy (it runs on apache in the directory "owncloud" behind a router, which forwards the port). Yes, the corruption also appears when uploading via the web client (just retested a minute ago). |
Then we need to exclude local vs server problem. Do you have a chance to try this with a different computer (e.g. try a Mac) from a different network (friend, work, etc) ? Does your webserver have any fancy pagespeed or similar modules? |
I have the same problem from my Windows PC (at work) and my linux PC (at home). apache2ctl modules:
|
https://httpd.apache.org/docs/2.4/mod/mod_proxy_html.html
https://httpd.apache.org/docs/2.4/mod/mod_ext_filter.html Looks suspcious.. |
Well, I do proxy something through that server, but not owncloud. Shall I disable ext_filter and try again? (right now I can't remember why I enabled it) |
Both modules look like they can rewrite things passed through, so who knows.. yes :) |
Nope. Same problem. Btw. the ext_filter module is enabled by default in the gentoo configuration. |
Check your other modules.. ? Check if you really disabled the modules? Use a binary diff tool to compsare the correct file vs the corrupt file, maybe there is a (plaintext) clue.. |
What would be a certified module constellation to be working with owncloud? I don't have the time to disable each module. I will compare the files when I am back home at my Linux PC. |
Would first need to see if it is really the modules, but that's my only guess now.. In general if it is a module, then it is probably because it modified the file. Maybe it's not a module. don't ask me about certified though ;) https://owncloud.com/owncloud-server-or-enterprise-edition/ |
Ok, some progress. I started owncloud with a very simplistic module environment of apache:
Now it works. So I have to find the module, which is responsible for the rewrite. :( |
@marlemion Great! Good luck and comment here if you found out... @dragotin @moscicki @DeepDiver1975 ...something which would have been prevented by transfer checksums FYI #2542 |
Ok, I narrowed it down. It wasn't any module, but rather a virtual host, which is a redirection from my XBMC/KODI control web interface to my outer url/xbmc:
I have disabled it so far. Maybe this is of any help for you. Thanks a lot. I was able to recover my lost data thanks to the versioning feature. :) Apparently, I copied the file from some forum, so I don't have any clue what it does. |
Had same data corruption problem with MS Word files. Completely removing recently installed Kodi from client to see if problem fixed. |
Microsoft Word files cannot be opened after being uploaded to owncloud. MS Office claims that they are damaged.
Reproduce the bug: Drop the file to the server via the web interface and let it sync to the file system via the windows client or upload it directly via the windows client. Downloading directly from the web interface does also result in a corrupted docx file. So apparently ANY DOCX FILE GETS DAMAGED.
The windows client is current 1.8.4, the server 8.1. Apache is at 2.4.16, encryption is not enabled, fastcgi is not installed, no redirection, apache PHP at 5.6. The log file does not show any error message.
This is crucial. I already messed up some of my work due to this bug.
The text was updated successfully, but these errors were encountered: