Issue 2042 - Read-Error opening document
Summary: Read-Error opening document
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 638
Hardware: PC Windows 2000
: P2 Trivial (vote)
Target Milestone: ---
Assignee: Oliver Specht
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-28 07:05 UTC by overzealous
Modified: 2003-09-08 16:56 UTC (History)
1 user (show)

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


Attachments
This is the last version of the file, which will not re-open (14.19 KB, application/octet-stream)
2001-10-28 07:07 UTC, overzealous
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description overzealous 2001-10-28 07:05:42 UTC
This might not be the right place to handle this but:

I have a document I created in StarOffice 6 (beta) Writer.  It is about 10 
pages, with many suctom styles, frames, and various formatting techniques.  It 
contains no images.

I worked on the file all day, without any problems.  I saved it many times.  
When I save, an app I run continuously makes backups of the file (so I have 
every save I made).

Problem: The file will not re-open.  I get a "Read-Error.  Unable to open 
document" every time I try to open it.  I've tried about 4 or 5 earlier 
versions, as well, including the first save, which had little or no formatting 
at the time.  The .sxw file(s) decompress using a zip program just fine, and I 
can read and edit the files.  I've tried recompressing it without the layout-
cache, but to no avail.

I'm not sure if the problem is with my particular installation or what.

I'll attach the document if I can.

- Phil DeJarnett
Comment 1 overzealous 2001-10-28 07:07:37 UTC
Created attachment 631 [details]
This is the last version of the file, which will not re-open
Comment 2 overzealous 2001-10-28 17:19:20 UTC
I've done a lot more research, and found it's caused by the style.xml 
file.  I'm not so concerned that I get it fixed, now, but it would be 
nice to know why the style document was corrupted from the 
beginning.  (It looks fine to me, though).
Comment 3 stefan.baltzer 2001-10-29 09:53:12 UTC
Reassigned to Eric.
Comment 4 eric.savary 2001-11-12 21:54:27 UTC
ES->MIB: 3 results after analyse:
1) File is not valid because the child element 'table:table' is not 
valid as child of a <style:master-page... <style:header.
2) The issue submitted occures because of the <style:header... 
<table:table... child of the "TOC" master page syle: -> delete it and 
you can load the document.
3) if I delete all childs and attribute of any 
<style:header...<table:table...  to get this structure:
<style:header>
	<table:table/>
</style:header>
the document crashes OOo on load. I don't say it makes sense to write 
such things but the price to pay for this is too high (crash)

Tell me if those remarks need to be splitted in different issues.
Comment 5 eric.savary 2001-11-12 21:59:36 UTC
Note: i can reproduce the crash (3) in the 641n.
Comment 6 michael.brauer 2001-11-14 11:05:45 UTC
XText::setString("") for a header text does not work correctly if the
XText contains a table only
Comment 7 Oliver Specht 2001-11-15 15:52:27 UTC
Additionaly the API access to headers/footers and text frames that
contain a table only or a table at the start or at the end has been
fixed. (in 641p)
Comment 8 Oliver Specht 2003-06-19 08:32:12 UTC
Closed.