Issue 92211 - [Writer/HTML] Error message "cannot display HTML source" when trying to view the source on a new HTML document
Summary: [Writer/HTML] Error message "cannot display HTML source" when trying to view ...
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: DEV300m22
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2008-07-28 11:33 UTC by p9w.vu.31122010
Modified: 2013-08-07 14:43 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 p9w.vu.31122010 2008-07-28 11:33:16 UTC
To reproduce:

Create a new Writer/HTML document
enter some text
save the document
switch to HTML source view "View - HTML-Source"

an errormessage appears "Cannot display HTML source!"

Workaround:
close the document and re-open it. HTML source view works fine then

This was OK in DEV300_m18, so it's a regression.
Comment 1 michael.ruess 2008-07-28 15:26:27 UTC
MRU->AMA: you have to exactly follow the steps:
- new HTML document
- enter some text
- save HTML document
- now switch to HTML source view -> mentioned eror

Was good at least in 2.4.1. And as Simon said also in older DEV300 builds.
Comment 2 andreas.martens 2008-07-29 08:42:36 UTC
ama->os: Please have a look...
Comment 3 Oliver Specht 2008-07-29 09:42:46 UTC
Broken at least since DEV300 m22
SourceView code is in sw/source/ui/uiview/srcview.cxx, SwSrcView::Load()
Additional problem: 
- switch to sourceview
- change something
- switch back to normal view
- change something and save -> Write Error. File could not be written.
- save again -> o.k.

Comment 4 mikhail.voytenko 2008-07-29 15:15:21 UTC
The problem was that internal C++ method SfxObjectShell::DoSave() was used to
store the document while switching. This method works only in some cases and
should be used only internally by sfx2 ( should not be exported in future
probably ). The scenario worked by luck before.
Fixed. 
Comment 5 mikhail.voytenko 2008-07-31 07:52:23 UTC
mav->mru: Please verify the issue.
Comment 6 michael.ruess 2008-08-01 12:38:42 UTC
Verified fix in CWS mav35.
Comment 7 michael.ruess 2008-08-14 15:07:33 UTC
Checked in OOO300m2.