Issue 90792 - WW8: Import protects all sections, although only one is protected
Summary: WW8: Import protects all sections, although only one is protected
Status: CLOSED DUPLICATE of issue 90306
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: OOo 2.4.1
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: openoffice
QA Contact: issues@sw
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2008-06-16 21:34 UTC by andreschnabel
Modified: 2013-08-07 14:44 UTC (History)
4 users (show)

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


Attachments
test case (94.00 KB, application/vnd.oasis.opendocument.text)
2008-06-16 21:35 UTC, andreschnabel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description andreschnabel 2008-06-16 21:34:24 UTC
If a word document with one protected section is imported, all sections are
protected in writer. This problem is serious, as such document structure is the
default if a table of content is exportet to .doc.

See attached example to verify the issue.

Found in Ooo 2.4.1 and 3.0beta as regression to OOo 2.4.
Comment 1 andreschnabel 2008-06-16 21:35:07 UTC
Created attachment 54520 [details]
test case
Comment 2 eric.savary 2008-06-17 13:18:08 UTC
@hbrinkm: please check if it is a dup of issue 87256. Thanx!
Comment 3 andreschnabel 2008-06-17 17:45:25 UTC
@es/hbrinkm: I really don't think, that tis is a dup. 
The file opens correctly in Word and all (but the one expected) sections can be
edited. So in case of this issue we have an import problem, issue 87256 is about
export.
Comment 4 tora3 2008-07-20 22:15:49 UTC
It seems this phenomenon has been already fixed in the latest developer build 
DEV300_m26 with the CWS cmcfixes47.

In the following method of sw/source/filter/ww8/ww8par6.cxx
  void wwSectionManager::CreateSep(const long nTxtPos, bool /*bMustHaveBreak*/)

Revision 1.177 (OpenOffice_2_4_0)
    aNewSection.maSep.fUnlocked = ReadBSprm(pSep, (bVer67 ? 139 : 0x3006), 0 );

Revision 1.177.46.2 (OpenOffice_2_4_1), for the issue 90306?
    aNewSection.maSep.fUnlocked = eVer <= ww::eWW2 ? ReadBSprm(pSep, (eVer <=
ww::eWW7 ? 139 : 0x3006), 0 ) : 0;

Revision 1.188 (DEV300_m26), for the issue 90792?
    aNewSection.maSep.fUnlocked = eVer > ww::eWW2 ? ReadBSprm(pSep, (eVer <=
ww::eWW7 ? 139 : 0x3006), 0 ) : 0;
Comment 5 openoffice 2008-07-21 09:25:45 UTC
Cannot reproduce on DEV300_m26, too.

@cmc: Can you confirm that the changes tora mentioned fix this issue?
Comment 6 caolanm 2008-07-21 09:32:06 UTC
yes, that the same issue, and should be ok in m26 now

*** This issue has been marked as a duplicate of 90306 ***
Comment 7 caolanm 2008-07-21 09:32:31 UTC
closing as duplicate