Apache OpenOffice (AOO) Bugzilla – Issue 6432
unable to open .sxw file - read error
Last modified: 2013-08-07 14:43:23 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.
Created attachment 2231 [details] This is the file that won't open.
Reassigned to Éric.
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
Reassigned to Daniel
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.
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.
HB: fixed (sw006): /cvs/xml/xmloff/source/text/txtfldi.cxx: 1.43.44.1
checked OK in sw006
Ready for QA
JA: re-prioritized according to new priority guide lines
fixed
verified
Ok in 644m4s4