https://bz.apache.org/ooo/show_bug.cgi?id=126330

Monica Arzani <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Monica Arzani <[email protected]> ---
Created attachment 86683
  --> https://bz.apache.org/ooo/attachment.cgi?id=86683&action=edit
Verification that corruption happens with comments on highlighted text in
Headers/Footers


Attachment: TestMonica.zip

Issue still present on my configuration:
ApacheOpenOffice 4.5.0 AOO450m1(Build:9900)  -  Rev. 1857900
Rev.1857900
System spec: 
* Processor: Intel(R) Core(TM) i7-6820HQ CPU @2.70GHz 
* Installed memory (RAM): 16.0 GB
* System type: 64-bit Operating system (Windows 7)
* Processor Graphics in Use: Intel(R) HD Graphics 530

I was able to replicate the issue with steps from [email protected] and
anthony.

I did some follow up tests to identify if  one of the critical steps is
“Highlight the text and add a comment”. The file does get corrupted when
multiple comments are on highlighted text, but not when comments are on blank
spaces.

Similar tests on Footers show the same behaviour (corrupted file when multiple
comments are made on highlighted text and normal behaviour when comments are on
blank spaces). Repro steps are at the end of the description.
Saving the file in OpenOffice.org XML 1.0 Test Document (.sxw) and keeping
chosen format shows the same behaviour as when saved in .odt. (attachment
Test2.sxw and Test3_Corrupted.sxw)
I executed as well some tests with comments on footnotes, but the file was not
corrupted in any case.

#
Test 1: Multiple comments on highlighted text in header on single page

Actual result:  File corrupted - attachment Test1_Corrupted.odt
Read-Error.
Format error discovered in the file in sub-document styles.xml at 2,10628
(row,col).

Repro steps:

1) Create new Writer document
2) Insert > Header > Default
3) Type some words in the header (eg. “Header 1”)
4) Insert comment by highlighting part of the text (eg. select “Header” and
press Ctrl+Alt+C) and type a comment
5) [OPTIONAL] Save in .odt format
6) [OPTIONAL]  Close file
7) [OPTIONAL]  Reopen file with OO Writer -> File is correctly opened 
8) Add a second comment by highlighting part of the text in the header  (eg.
select “1” and press Ctrl+Alt+C) and type a comment
9) Save in .odt format
10) Close file
11) Reopen file with OO Writer -> File is corrupted

To reduce the steps, open Test1.odt attachment and start from step 8).
Steps 5 to 7 are only to show the correct behaviour.

#
Test 2: Multiple comments on blank space in header on single page
Actual result: File is correctly opened - attachment Test2.odt

Execute steps as in Test 1. Change following steps:

4) Insert comment after a word in the text (eg. select space after “Header” and
press Ctrl+Alt+C)
8) Add a second comment after a word in the text (eg. select space after “1”
and press Ctrl+Alt+C)

After saving and closing, the file is correctly reopened - 

#Test 3: One comment per header on highlighted text on multiple page document
(different headers)

Actual result:  File corrupted - attachment Test3_Corrupted.odt
Read-Error.
Format error discovered in the file in sub-document styles.xml at 2,11053
(row,col).

1) Create new Writer document
2) Add a second page (Insert > Manual break > Page break or press enter
multiple times)
3) Insert different headers with Format > Page... > Header, select “Header on”
and deselect “Same content left/right”. Press ok.
4) Type some words in the first page header (eg. “Header 1”) -> second header
is left blank
5) Type some words in the second page header (eg. “Header 2”) -> second header
is different from first header as expected.
6) Insert comment in first header by highlighting part of the text (eg. select
“Header 1 ” and press Ctrl+Alt+C) and type a comment
7)  [OPTIONAL]  Save in .odt format
8)  [OPTIONAL]  Close file
9)  [OPTIONAL]  Reopen file with OO Writer -> File is correctly opened 
10) Insert comment in second header by highlighting part of the text (eg.
select “Header 2 ” and press Ctrl+Alt+C) and type a comment
11) Save in .odt format
12) Close file
13) Reopen file with OO Writer -> File is corrupted

To reduce the steps, open Test3.odt attachment and start from step 10).
Steps 7 to 9 are only to show the correct behavior.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to