Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Dialog popup when loading malformed sxd files. | ||||||
---|---|---|---|---|---|---|---|
Product: | App Dev | Reporter: | Unknown <non-migrated> | ||||
Component: | api | Assignee: | thorsten.martens | ||||
Status: | CLOSED FIXED | QA Contact: | issues@api <issues> | ||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | issues | ||||
Version: | 3.3.0 or older (OOo) | ||||||
Target Milestone: | --- | ||||||
Hardware: | Sun | ||||||
OS: | SunOS | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
Unknown
2002-08-06 10:06:09 UTC
implementation issue Code that is called while a document is loaded or saved should never show any dialogs. Only an interaction handler is allowed to do so. Unfortunately the SfxLoadEnvironment_Impl shows ErrorMessages if an error code is set at the SfxObjectShell. So we should do the following: Create a new "general" exception/interaction that just transports an error code. If the error code is a "warning": check medium for interaction handler and use it, if there is none, ignore the error code, set error code to ERRCODE_NONE. If the error code is an "error": check medium for interaction handler and use it, if there is none, throw an exception, set error code to ERRCODE_ABORT. Little problem: throwing the exception is only possible inside the Frameloader, not in LoadEnvironment_Impl! . . I`ve created a new interaction for such generic core errors/warnings und integrated it into the framework/sfx modules. Now such errors/ warnings can be suppressed via api. Created attachment 4374 [details]
can be used for testing
I've forgot ... the attached test script needs one damaged XML file. It can be created very easy. Save any content as office 6.0 xml format - rename the file to *.zip - unpack it - change the content.xml part by removing one xml end tag - pack the zip again and rename it back. Please check it on \\mav-11198\CWS\as3. THX . Issue has been verified in cws as3 -> OK ! . As mentioned on the qa dev list on March 5th I will close all resolved <wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details. |