Issue 6432 - unable to open .sxw file - read error
Summary: unable to open .sxw file - read error
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC Windows 2000
: P2 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-15 06:01 UTC by Unknown
Modified: 2013-08-07 14:43 UTC (History)
1 user (show)

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


Attachments
This is the file that won't open. (18.06 KB, application/octet-stream)
2002-07-15 06:04 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-07-15 06:01:56 UTC
After creating a file with many formating features including,
- table of contents
- footer/header (different first page)
- footnotes
- DDE links (within the same document)
- tables with captions
- outline numbering
I saved the file in .sxw format. While the document was open I had no problems.
When I closed down writer and then restarted it. I could no longer open the file.
When opening the file after restarting writer it asks "update all links". I say
"yes" then I get an error message box with 
"An unrecoverable error has occured.  All modified files have been saved and can
probably be recovered at program restart" I press the ok button and then get a
windows error message box that reads as follows
"soffice.exe has generated errors and will be closed by Windows. You will need
to restart the program.  An error log is being created"
If instead of answering yes to the update links question I answer no I get a
different message box which says
"Error loading document.
file:///C:/Documents%20and%20Settings/dtdw/Desktop/bootstrapMode.sxw:Read-Error.
Error reading file."

Please email me "j3ff@acm.org" to obtain a copy of the .sxw file that causes
this problem (there doesn't seem to be anywhere to attach it here!)

Jeff.
Comment 1 Unknown 2002-07-15 06:04:24 UTC
Created attachment 2231 [details]
This is the file that won't open.
Comment 2 stefan.baltzer 2002-07-15 19:16:23 UTC
Reassigned to Éric.
Comment 3 eric.savary 2002-11-04 20:49:36 UTC
ES->DVO: bad!
The <style:footer> tag includes a <text:dde-connection-
decls>...</text:dde-connection-decls>. The DTD doesn't provide this 
kind of child.
I mirror an issue on iBIS for it seems to be important enough to get 
a close target.

ES->j3ff: workarounds:
* to save your file:
- unzip the sxw file and extract the style.xml file
- in this file look for the tag encapsulation:
---------------------
<style:footer>
	<text:dde-connection-decls>...
        </text:dde-connection-decls>
...
</style:footer>
---------------------
- delete the <text:dde-connection-decls>...</text:dde-connection-
decls> tags whith their content.
- save
- zip again
-> the file can be loaded but any reference to DDE links in footer 
will be lost

* to avoid having this problem until bug fix: don't include DDE links 
in footers or headers
Comment 4 eric.savary 2002-11-04 20:53:16 UTC
Reassigned to Daniel
Comment 5 openoffice 2003-01-27 10:32:17 UTC
dvo: The problem is indeed with dde-declarations inside of headers.
Since connections are stored with every header, so a connection being
used in multiple headers yields multiple declarations. The bug is that
this fails to work.
I'll fix that, time permitting.
Comment 6 openoffice 2003-02-07 14:34:41 UTC
dvo->hbrinkm: Please have a look at this.
The relevant code is in XMLDdeFieldDeclImportContext::StartElement.
(xmloff/soruce/text/txtfldi.cxx) I assume an exception is thrown at
the createInstance call. Possible solutions might be a suitable
try/catch, or alternatively one might check the error condition before
and only execute the createInstance if it's safe. 
Comment 7 openoffice 2003-02-12 12:55:11 UTC
HB: fixed (sw006): /cvs/xml/xmloff/source/text/txtfldi.cxx: 1.43.44.1
Comment 8 openoffice 2003-02-17 11:26:22 UTC
checked OK in sw006
Comment 9 openoffice 2003-02-17 11:27:08 UTC
Ready for QA
Comment 10 Joost Andrae 2003-02-17 11:47:24 UTC
JA: re-prioritized according to new priority guide lines
Comment 11 eric.savary 2003-02-19 12:55:38 UTC
fixed
Comment 12 eric.savary 2003-02-19 12:55:57 UTC
verified
Comment 13 eric.savary 2003-02-23 14:30:28 UTC
Ok in 644m4s4