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

          Issue ID: 126330
        Issue Type: DEFECT
           Summary: Adding comments to headers leads to an error in
                    styles.xml corrupting the document
           Product: Writer
           Version: 4.1.1
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: P5
         Component: formatting
          Assignee: issues@openoffice.apache.org
          Reporter: marcus.def...@gmail.com

I had a document with different page styles. The document used different
headers (more than 1). Using the comment function I noticed it won't save the
formatting info of the comments used in headers. (I made some words bold.)

Now if I apply comments to at least 2 different headers (which is possible with
the different page styles allowing for different headers) and save the document
then it will result in an error in styles.xml.

Something with duplicate attributes in office:name - that info I got when I
examined the .xml with some tools. Unfortunately I don't know much about XML to
give more info. It was possible to repair the file by deleting some stuff (the
duplicate attributes so there was only 1 left).

Seems the info for multiple headers is saved at 1 place (where it creates these
multiple attributes leading to a bug). Possible that this also is a problem for
footers(not tried yet).

Should be fixed or at least - until it is possible to fix it - the comment
function disabled in headers/footers.

If you want to try reproducing:
1. New document, manual page break(from the menu) and using a different page
style on next page.
2. Enabling headers on both pages.
3. Adding comments to both headers (you should have 2 pages, each a different
page style, each a different header, each one with at least 1 comment).
4. Save.
5. Try reopening -> Error message should appear.

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

Reply via email to