Apache OpenOffice (AOO) Bugzilla – Issue 97552
Insert Object document with password as a link, input wrong password and Cancle crashes Drawing and Impress
Last modified: 2009-02-16 16:57:13 UTC
Can reproduce it with DEV300m37 on WinXP and Fedora How to reproduce it 1 Open a new Drawing or Impress document 2 Insert - Object - OLE Object - Create from file: Check 'Link to file' and search for a document saving with password, then 'OK', Password dialog opens 3 Input a wrong password or input nothing, OK, the hint 'The wrong password has been entered' shows, OK 4 Password dialog opens once more, Cancel 5 'Runtime error' dialog opens, OK Result On Fedora, OOo crashes after step 4 On WinXP, OOo crashes after step 5 Expectation Drawing or Impress works well Attachment file password: 111111 Regards Li Meiying
Created attachment 58991 [details] document with password
Reproducible. Reassigned.
The crash is caused by an uncaught exception. When the file is not properly unlocked a css::uno::Exception is thrown. The exception is not caught which leads directly to a crash under the unixes. On windows there "just" is a corrupt object which leads to a crash later. Fixed by catching css::uno::Exception in FuInsertOLE::DoExecute(SfxRequest&). Modified file is /sd/source/ui/func/fuinsert.cxx rev. 266153
@WG: Please verify.
See above.
Verified in CWS.
Tested in OOO310_m1. Closed.