To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=110083
User sb changed the following: What |Old value |New value ================================================================================ Status|CLOSED |REOPENED -------------------------------------------------------------------------------- Resolution|DUPLICATE | -------------------------------------------------------------------------------- ------- Additional comments from s...@openoffice.org Mon Apr 12 09:59:54 +0000 2010 ------- @brinzing: <http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fsb121> is not yet integrated into DEV300 About not being able to read UITitle prior to writing it: This indeed is a shortcoming of <http://hg.services.openoffice.org/cws/sb121/rev/ba582981e03b> that fixed issue 110258. This can be reproduced as follows: 1 Install the attached LoggingOptions.xcs, with "<component/>" inserted as explained in <#desc14>, as an extension. 2 Install a corresponding LoggingOptions.xcu as an extension: ---8<--- <?xml version="1.0" encoding="UTF-8"?> <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" oor:name="Logging" oor:package="org.openoffice.Office"> <node oor:name="Settings"> <node oor:name="test" oor:op="replace"> <node oor:name="HandlerSettings"> <prop oor:name="UITitle"><value>Test Title</value></prop> </node> </node> </node> </oor:component-data> ---8<--- 3 Run the Basic macro ---8<--- sub main dim args(0) as new com.sun.star.beans.NamedValue args(0).Name = "nodepath" args(0).Value = _ "/org.openoffice.Office.Logging/Settings/['test']/HandlerSettings" o = createunoservice("com.sun.star.configuration.DefaultProvider")._ createInstanceWithArguments(_ "com.sun.star.configuration.ConfigurationAccess", args) msgbox o.getPropertyValue("UITitle") msgbox o.getPropertyValue("UIId") msgbox o.getPropertyValue("unknown") end sub ---8<--- This will fail with an UnknownPropertyException for UITitle. With the below patch to configmgr/source/xcsparser.cxx (which will go into CWS sb122), this will work; it presents "Test Title" for "UITitle", the empty default string for "UIId", and an UnknownPropertyException for "unkown". ---8<--- 81,90c81,92 < for (NodeMap::iterator i2(update->getMembers().begin()); < i2 != update->getMembers().end(); ++i2) < { < NodeMap::iterator i1(original->getMembers().find(i2->first)); < if (i1 == original->getMembers().end()) { < if (i2->second->kind() == Node::KIND_PROPERTY && < dynamic_cast< GroupNode * >( < original.get())->isExtensible()) < { < original->getMembers().insert(*i2); --- > if (dynamic_cast< GroupNode * >(original.get())->isExtensible()) { > for (NodeMap::iterator i2(update->getMembers().begin()); > i2 != update->getMembers().end(); ++i2) > { > NodeMap::iterator i1( > original->getMembers().find(i2->first)); > if (i1 == original->getMembers().end()) { > if (i2->second->kind() == Node::KIND_PROPERTY) { > original->getMembers().insert(*i2); > } > } else if (i2->second->kind() == i1->second->kind()) { > merge(i1->second, i2->second); 92,93d93 < } else if (i2->second->kind() == i1->second->kind()) { < merge(i1->second, i2->second); ---8<--- --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org For additional commands, e-mail: issues-h...@framework.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org