Apache OpenOffice (AOO) Bugzilla – Issue 50805
.ODT documents corrupted
Last modified: 2013-08-07 14:42:16 UTC
I am using OOo 2 beta (1.9.100) on a linux (Suse 9.2) and a windows (XP Pro) machine. I transfer documents between them quite regularly. With .odt documents a problem occurs: When I try to open .odt documents, which I saved under linux, on the windows machine, I get the following error: OpenOffice.org 1.9.100 Read-Error Format error discovered in the file in sub-document styles.xml at 2,2558(row,col) I tried this with 2 documents, and both times it happened. There is no problem with other document formats (I also use .doc, .ods, .xls).
Reassigned to ES.
Please attach a sample document. Can you still oopen those document on linux? How do you open them (double click, File - Open)?
Created attachment 27262 [details] File that couses the error
I have attached a file that couses the error. It took me a little to reproduce the error. The problem seems to be with OOo 1.9.79 - only in trying to reproduce the error I noticed that I have both 1.9.100 and 1.9.79 on the windows machine (I would have thought that the installer removed the older version when I installed the new one, but it didn't). The error occured when I opened the file (without knowing) in 1.9.79. So the file was written under Linux with OOo 1.9.100, and then opened under windows with OOo 1.9.79 (which I unwittingly did when I opened OOo via the desktop icon). The formatting was lost (as happened before), and then I edited the document and saved it. After this, when I tried to open the document in OOo 1.9.100 (which happened when I double-click the icon of the document), the error occurred and persisted, regardless of the OOo version and the way in which I opened the file (double-click or the file-open dialogue), and of the operating system. I hope this answers your questions - I am a little confused by the strange setup of the computer. But I leave it for the time being, in case you need more information.
I checked with 2.0 (1.9.m104) English version WIN XP: [680m104(Build8913)], tried to open the testfile "Testfile.odt" ad got errormessage as reported (only difference: ... 2,2678 (row, col)). My OOo crashes (closes) when I press "OK" in the error message. Reporter, did I understand correctly? "Testfile.odt" is a file - you edited with 1.9.100 (Linux) - can not be opened with 1.9.100 (WIN) - can be opened with 1.9.79(WIN), but formatting is lost - you can open "Testfile.odt" on your Linux machine without problems Currently I can not see whether it is a problem caused by a "save error" witn Linux OOo or an "open error" on the WIN machine.
Sorry for being ambiguous. -I created and edited the file with 1.9.100 (Linux) -opened and edited it with 1.9.100 (windows): worked fine -opened it with 1.9.79 (windows): formatting lost -then edited with 1.9.79 and saved -tried to open with 1.9.79: works -tried to open with 1.9.100 (either platform): file corrupted. -After having tried to open 1.9.100, the file cannot be opened at all with either version and on either platform. It's just dead.
ES->soenderup: I don't think this is a Windows/Linux problem. It appears that the xml streams (styles.xml and content.xml) have repeated definitions like: xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" To repare your files, you can unzip them and, in the styles.xml and content.xml, delete every multiple occurence of this string. Only 1 occurrence of this string per element (AFAIK it only affect the <paragraph-properties> tag) is valid. After this, of course, you need to save and zip the files again.
ES->FLR: as discussed, we may want to retarget this issue.
soenderup -> ES: Many thanks for the advice. Much appreciated.
flr->mib: As discussed: Could you please set the bug to the appropriate duplicate. This bug concerns the problems with namespace change during beta phase. Thanks.
It's a duplicate. *** This issue has been marked as a duplicate of 48731 ***
closed