To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=102461
                 Issue #|102461
                 Summary|Invalid ODT document should not be opened without aski
                        |ng user if he wants Writer to ignore the errors.
               Component|Word processor
                 Version|1.0.0
                Platform|Unknown
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|open-import
             Assigned to|writerneedsconfirm
             Reported by|himajin100000





------- Additional comments from [email protected] Wed Jun  3 
06:07:58 +0000 2009 -------
tested with:DEV300m47

Background and Steps to Reproduce:

        I created an ODT file with Writer, and I knew the XML being the 
following
structure, since I tested with some samples before.

        <text:list>
                <text:list-item><text:p>aaa</text:p></text:list-item>
        </text:list>
        <table:table>
        (snip)
        </table:table>
        <text:list continue-numbering="true">
                <text:list-item><text:p>bbb</text:p></text:list-item>
        </text:list>

        I thought this structure is not what I wanted, 
        so I renamed the .odt file to .zip and edited content.xml with a text 
editor
like this way.

        <text:list>
                <text:list-item>
                        <text:p>aaa</text:p>
                        <table:table>
                        (snip)
                        </table:table>
                </text:list-item>
                <text:list-item><text:p>bbb</text:p></text:list-item>
        </text:list>

        I am a lazy man, and have never read the ODF specification, and did not 
know
table:table is not allowed as a child of text:list-item.
        I noticed the error after I got an error message when I checked the 
file with
Online ODF Validator.

        When I zipped the files, renamed .zip to .odt, and try to open the .odt 
file in
Writer,

Actual Result:

        The problem is...

        Writer did not show any confirmation dialog even though the file is 
invalid,
opened the .odt file with the tables in list not shown.
        When I saved/overwrited the .odt file, and saw the content.xml file, I 
found
that type of table:tables gone completely.

Expected Result:

        Writer should ask user if he wants writer to Ignore/Correct the errors.
        If the user refuse to be corrected by Writer,

        Or

        Writer should not open the Invalid file.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to