Apache OpenOffice (AOO) Bugzilla – Issue 113897
macros get lost on open if form control is present
Last modified: 2017-05-20 10:22:06 UTC
steps to reproduce: - open attached files with oo 3.2/3.2.1 "test_macro_ok.ots" is same as "test_macro_bug.ots" except for the form control - open "Tools - Macro's - Organize Macro's - OpenOffice.org Basic..." - in both files there is a Module "Vordruck" with a Macro "Start" - do same steps with OO330m4 - only "test_macro_ok.ots" will contain the macro "Start" -> regression btw saving "test_macro_bug.ots" will remove the basic from xml -> data loss imho the problem is caused due to the form control, which is assigned to a scripting framework action. if you want to make them work, install "ScriptDispatch.oxt" from issue http://www.openoffice.org/issues/show_bug.cgi?id=98990 with "--shared" option before.
Created attachment 71118 [details] test_macro_ok
Created attachment 71119 [details] test_macro_bug
@ ab: Please have a look.
ab->mav: As discussed, please have a look. I get an exception in basic/source/uno/namecont.cxx, SfxLibraryContainer::loadLibrary(...) when calling xLibrariesStor = mxStorage->openStorageElement(...)
just noticed: - open "test_macro_bug.ots" with OO330m4 via "File - Templates -Edit" and the macro "Start" appears. - open "test_macro_bug.ots" as "untitled 1" with OO 3.2 and save as "test_macro_bug.ods". (Spreadsheet Document) macro "Start" now will be shown with OO330m4...
The bug was only triggered by the last changes in calc. The real problem is older, it is a duplication of the library containers in the sfx that is now described by issue 113914 and should be solved for OOo3.4. There is an easy and safe solution for this problem before issue 113914 is solved, so this issue should be fixed as showstopper from my point of view.
setting keyword regression added to release blockers
Fixed in cws fwk153.
cd->of: Please verify.
I'm not the right one to test and justify such issues.
@ hde, msc: Is this something for you?
I will have a look.
verified in cws fwk153 . in the cws the macro is available when open the bug template.