Apache OpenOffice (AOO) Bugzilla – Issue 118726
extensions.pmap is not recreated after deleting user directory
Last modified: 2012-01-13 08:24:56 UTC
i found this bug in win32 aoo3.4 dev build revision 1226179 steps to reproduce: - add some shared extensions (java, c++, basic) - close oo and delete the user directory, e.g.: C:\Users\User\AppData\Roaming\OpenOffice.org\3.4\user - restart oo - extensions will be initialized and user directory will be created on first start. - but "Tools - Extension Manager" is empty now extensions are working, except for basic library extensions: "Tools - Macros - Organize Macros - OOo-dev Basic... - OOo-dev Macros" does not show the macros deployed via extension. the missing file is: C:\Users\User\AppData\Roaming\OpenOffice.org\3.4\user\extensions\ shared\extensions.pmap it worked with oo3.4beta1 (oracle) -> regression comment from arielch: The change made is the removal of the Berkely Database, so now instead of extensions.db you have a extensions.pmap file (a plain text file).
added keyword "regression"
rbircher > hdu do you working on this? If yes please set the issue to started.
Created attachment 77117 [details] extensions.pmap_before_start
Created attachment 77118 [details] extensions.pmap
Created attachment 77119 [details] extension-manager.gif
with aoo3.4m1 revision 1229372 situation is really worse now: i installed 4 extensions from command line: unopkg add oracle-*.oxt --shared --verbose attached "extensions.pmap_before_start" shows the result. seems to be ok. but after starting aoo, "Tools - Extension Manager..." will show only the first installed extension. and the "extension.pmap" lost all entries except for the first installed extension (revision 1226179 did not change# the *.pmap file) see attached *.gif and *.pmap file for details
I can confirm this with revision 1229372 There is no need to remove the user directory. On a new installation, with no user directory, do the following: 1. start AOO 2. Use the Extension Manager GUI (Tools menu) to install the following extensions FOR ALL USERS, in the following order: 2.1. Wiki Publisher 2.2. Presentation Minimizer 2.3. Presenter Consoler 3. Restart AOO 4. Open the Extension Manager GUI from the Tools menu Result: only the last installed extension is listed, the Presenter Consoler Set status to new.
Created attachment 77123 [details] Patch to test bundled extensions The attached patch will ad two bundled extensions: * writer2epub.oxt * numbertext See trunk/main/myextensions/README After the first application run, the Extension Manager only shows the numbertext extension. This used to work before, see http://s.apache.org/5LG
Created attachment 77124 [details] extensions.pmap from openoffice.org3/share/prereg/bundled/
Created attachment 77125 [details] extensions.pmap in the user directory
FWIW regarding the test case in comment 8 during installation of writer2epub.oxt an exception is thrown on my system ("python-loader:<type 'exceptions.ImportError'>: No module named pythonloader, traceback follows no traceback available") and handled in dp_backend.cxx:684 and upwards.
(In reply to comment #11) > FWIW regarding the test case in comment 8 during installation of > writer2epub.oxt an exception is thrown on my system > ("python-loader:<type 'exceptions.ImportError'>: No module named pythonloader, > traceback follows no traceback available") > and handled in dp_backend.cxx:684 and upwards. Minor update: This python problem is already being tracked in issue 118021.
Mea culpa: since on some platforms the destructors of the PersistentMap were not called by the extremely complex extmanager factory cleanup process the easiest fix was to flush updated maps early. When doing the inital read the flush is not helpful and resulted in the problem reported. Fixed in revision 1230614. Please check.
Verified. Tested with: * bundled extensions * shared extensions * user extensions Removing the user directory, bundled and share extensions are present in the newly created profile.
Thanks for verifying.
Closing resolved and verified issue.