Apache OpenOffice (AOO) Bugzilla – Issue 21583
Setting a default html template generates an I/O error
Last modified: 2013-08-07 14:41:36 UTC
Setting a default template for html documents fails, and crashes OOo's capacity to create new HTML documents. Specifically: I create a blank HTML document in OOo, modify styles in Stylist, and Set as Default Template, but then when I exit and try to reopen HTML Editor, I get this error message: Error loading document file:///my_path/my_html_template: General Error. General input/output error. I can go back into Writer and Reset Default Template for HTML Document in order to get the HTML Editor working again. Error duplicated in OOo 1.0.3 on Windows 98 and OOo 1.0.3 on a Knoppix CD (see URL to OOoForum discussion).
reassigend to es can you please take a look on this issue?
Duplicated. No crash. Summary changed accordingly
ES->AS: - Save an HTML file as *.stw - Make this *.stw default template - open a new HTML doc -> I/O error
Reassigned to AS
.
*** Issue 27695 has been marked as a duplicate of this issue. ***
AS->MM: Because you are now responsible for our writer filters ... I think its your part to fix this issue. Note further: the described scenario isnt broken against a SO 7 ... but loading of "writer/web templates" in general is broken against this version! So I would say: it must be fixed in the time frame of an EA. The problem behind: The types/filters for "writer_template" and "writer_web_template" are not realy different. They uses the same extension "stw", have no mime-type registered inside configuration - but use different ones inside the file itself. Further the code handle all writer and writer/web contents in the same way. But the line 431 inside file "sw\inc\iodetect.cxx" cant be right. Because it forces using of the writer filter container everytimes. The writer/web container isnt used anyway. So searching of the right filter cant be done realy ... I would suggest: make your writer and writer/web filters more different. OK; for the current filters it must be done internaly - because the extension is out and must be used forever. But you can try to use the mime-type value, which is writen into the manifest of the xml file. As first step you should try to make loading of stw files working for both application modules. (writer and writer/web). Then you should have fixed the problem of loading a default template by the way too :-)
mmaher->mib: Can you help me with this one?
Sure I can help you, but AS should be able to help you as well. I'm sending the issue back to you, because I'm in vacation for the next three weeks and therfor will not be able to work on this task.
mmaher->mib: Welcome back :). If there is something I can do here let me know.
reassigned to mm
mmaher->dr: This may be similar to the other html bug I reassigned to you
reassigned due to resource constraints; approved by AMA
Investigation of the problem with SRC680m71 reveals, that loading of HTML-templates in general works. The extensions for template files for Writer and Writer/Web are different now - <.ott> and <.oth>. But still the described defect occurs, that a new default HTML-template generates an I/O error and produce a crash afterwards.
OD->AS: As figured out with MBA, the incorrect filter is applied for the default template for Writer/Web documents in method <SfxFrameLoader_Impl::load(..)> - pleas take over.
There exists two problems: a) The writer deep detection recognized only filters of the writer module. But the same detection is used for the writer/web. Now the detection search ANY writer and web filter to be sure, that nobody was untested. b) There exists a design problem inside this "default template" feature. The default filter of an office module was cmobined with a default template. But especialy for the writer/web module the requirements was not the right ones. So this feature doesnt worked for SO 6/7/8.beta !!! Now we forget the default filter in case a default template should be used and use the filter corresponding to the default template instead. Hint for QA: ALL office modules are affected by this change. The "default template" feature for all office modules has to be checked again ... otherwise this feature will be broken for an SO 8 final version too.
AS->TM: Normaly this task is related to the writer/web only ... but my code changes make it necessary to test the "default template feature" for all application modules. So please coordinate this step inside the QA. THX. Note further: This task is also related to #119268#. At least the whole feature "setting a default template" must be tested ... re-open issue and try to reassign to tm@openoffice.org
try to reassign to tm@openoffice.org
try to reset resolution to FIXED
Filter selection dialog appears when opening an oth - file ! re-open issue and reassign to as@openoffice.org
reassign to as@openoffice.org
reset resolution to FIXED
reassignned to me ! re-open issue and reassign to tm@openoffice.org
reassign to tm@openoffice.org
Checked and verified in a newer build of cws fwkpostbeta1 again: Win -> OK !
Lin -> OK !
ok on Linux and Solaris in m93
On Windows OK ! -> closed !