[Libreoffice-bugs] [Bug 132005] Calc extension fails in LibreOffice (works in Apache OpenOffice)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 13 14:30:13 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=132005

--- Comment #10 from Stephan Bergmann <sbergman at redhat.com> ---
(In reply to Julien Nabet from comment #7)
> + remove this block (but let the content)
> <node oor:name="m001">
> </node>

Better remove the outer

  <node oor:name="ToolBarItems">

level than the inner

  <node oor:name="m001" oor:op="replace">

one, so that the set element is named "m001" rather than "ToolBarItems" and,
more importantly, uses oor:op="replace" (which adds the element if no element
of the given name exists yet) rather than the default oor:op="merge" (which
ignores the given data if no element of the given name exists, issuing a
"warn:configmgr:*:*:configmgr/source/xcuparser.cxx:904: ignoring modify of
unknown set member node "ToolBarItems" in
"file:///~/.config/libreoffice/4/user/uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/*.tmp/Addons.xcu"").

(In reply to DKG from comment #8)
> In Apache OpenOffice, however, an error message appears:
> 
> (com.sun.star.uno.RuntimeException) { { Message = "Invalid operation on
> group node in
> file///C:/Users/user/AppData/Roaming/OpenOffice/4/user/uno_packages/cache/
> registry/com.star.comp.deployment.configuration.PackageRegistryBackend/
> sv8mwm5.tmp/Addons.xcu", Context = (com.sun.star.uno.XInterface) @0 }}
> 
> Has an incompatibility been introduced between LO and AOO? Anyway, the
> problem is solved for LibreOffice, and for Apache OpenOffice the previous
> version can be used.

AOO has changed officecfg/registry/schema/org/openoffice/Office/Addons.xcs
incompatibly with
<https://github.com/apache/openoffice/commit/bb0b5665bb7e780d37216c70970870c193b44173>
"i121577 - Allow setting toolbar name in Addons.xcu", which is why you can
either have an Addons.xcu adding an "ExportToGlossary.OfficeToolBar" in your
extension that works for LO and old OOo or one that works for AOO.  (We
erroneously picked up that incompatible change from AOO into LO too, but
quickly reverted it again with
<https://git.libreoffice.org/core/+/189bb791d248273758bd2b42e0ec216937fa22d9%5E!>
"fdo#66691: Revert fix for i#121577 Allow setting toolbar name in Addons.xcu".)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200413/a439b8c1/attachment.htm>


More information about the Libreoffice-bugs mailing list