Issue 50805 - .ODT documents corrupted
Summary: .ODT documents corrupted
Status: CLOSED DUPLICATE of issue 48731
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 2.0 Beta
Hardware: All All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: michael.brauer
QA Contact: issues@sw
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2005-06-16 08:55 UTC by soenderup
Modified: 2013-08-07 14:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
File that couses the error (14.06 KB, application/vnd.oasis.opendocument.text)
2005-06-17 04:40 UTC, soenderup
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description soenderup 2005-06-16 08:55:22 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).
Comment 1 michael.ruess 2005-06-16 09:24:32 UTC
Reassigned to ES.
Comment 2 eric.savary 2005-06-16 11:22:44 UTC
Please attach a sample document.
Can you still oopen those document on linux?
How do you open them (double click, File - Open)?
Comment 3 soenderup 2005-06-17 04:40:32 UTC
Created attachment 27262 [details]
File that couses the error
Comment 4 soenderup 2005-06-17 04:55:02 UTC
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.
Comment 5 Rainer Bielefeld 2005-06-17 05:42:51 UTC
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.

Comment 6 soenderup 2005-06-17 06:50:16 UTC
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.
Comment 7 eric.savary 2005-06-21 15:29:29 UTC
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.
Comment 8 eric.savary 2005-06-21 15:30:47 UTC
ES->FLR: as discussed, we may want to retarget this issue.
Comment 9 soenderup 2005-06-22 12:22:13 UTC
soenderup -> ES: Many thanks for the advice. Much appreciated. 
Comment 10 flr 2005-08-02 11:17:56 UTC
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.
Comment 11 michael.brauer 2005-08-02 12:58:51 UTC
It's a duplicate.

*** This issue has been marked as a duplicate of 48731 ***
Comment 12 michael.brauer 2005-08-02 12:59:22 UTC
closed