Issue 21583 - Setting a default html template generates an I/O error
Summary: Setting a default html template generates an I/O error
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC Windows 2000
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: thorsten.martens
QA Contact: issues@sw
URL: http://www.oooforum.org/forum/viewtop...
Keywords:
: 27695 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-10-22 20:37 UTC by html
Modified: 2013-08-07 14:41 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description html 2003-10-22 20:37:16 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).
Comment 1 jack.warchold 2003-11-10 15:45:44 UTC
reassigend to es

can you please take a look on this issue?
Comment 2 eric.savary 2003-11-18 18:14:11 UTC
Duplicated.
No crash.
Summary changed accordingly
Comment 3 eric.savary 2003-11-19 11:40:51 UTC
ES->AS:
- Save an HTML file as *.stw
- Make this *.stw default template
- open a new HTML doc
-> I/O error
Comment 4 eric.savary 2003-12-16 19:37:32 UTC
Reassigned to AS
Comment 5 andreas.schluens 2003-12-17 12:33:04 UTC
.
Comment 6 mci 2004-04-19 11:51:15 UTC
*** Issue 27695 has been marked as a duplicate of this issue. ***
Comment 7 andreas.schluens 2004-04-22 08:53:18 UTC
.
Comment 8 andreas.schluens 2004-05-14 09:41:03 UTC
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 :-)
Comment 9 martin_maher 2004-06-21 14:59:36 UTC
mmaher->mib: Can you help me with this one?
Comment 10 michael.brauer 2004-06-24 12:11:19 UTC
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.
Comment 11 martin_maher 2004-08-05 11:38:43 UTC
mmaher->mib: Welcome back :). If there is something I can do here let me know.
Comment 12 michael.brauer 2004-08-05 12:56:37 UTC
reassigned to mm
Comment 13 martin_maher 2004-10-13 15:10:52 UTC
mmaher->dr: This may be similar to the other html bug I reassigned to you
Comment 14 ooo 2005-01-21 12:08:35 UTC
reassigned due to resource constraints; approved by AMA
Comment 15 Oliver-Rainer Wittmann 2005-01-25 10:33:06 UTC
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.
Comment 16 Oliver-Rainer Wittmann 2005-01-25 15:36:15 UTC
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.
Comment 17 andreas.schluens 2005-01-27 13:14:55 UTC
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.
Comment 18 andreas.schluens 2005-02-21 09:36:44 UTC
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
Comment 19 andreas.schluens 2005-02-21 09:36:55 UTC
try to reassign to tm@openoffice.org
Comment 20 andreas.schluens 2005-02-21 09:37:02 UTC
try to reset resolution to FIXED
Comment 21 thorsten.martens 2005-03-11 09:35:41 UTC
Filter selection dialog appears when opening an oth - file !

re-open issue and reassign to as@openoffice.org
Comment 22 thorsten.martens 2005-03-11 09:35:46 UTC
reassign to as@openoffice.org
Comment 23 thorsten.martens 2005-03-11 09:35:50 UTC
reset resolution to FIXED
Comment 24 thorsten.martens 2005-03-11 12:08:24 UTC
reassignned to me !

re-open issue and reassign to tm@openoffice.org
Comment 25 thorsten.martens 2005-03-11 12:08:31 UTC
reassign to tm@openoffice.org
Comment 26 thorsten.martens 2005-03-11 12:08:37 UTC
reset resolution to FIXED
Comment 27 thorsten.martens 2005-03-11 12:13:08 UTC
Checked and verified in a newer build of cws fwkpostbeta1 again:
Win -> OK !
Comment 28 thorsten.martens 2005-03-11 13:09:12 UTC
Lin -> OK !
Comment 29 mci 2005-04-14 08:21:09 UTC
ok on Linux and Solaris in m93
Comment 30 thorsten.martens 2005-04-14 08:30:14 UTC
On Windows OK ! -> closed !