To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=110927
                 Issue #|110927
                 Summary|configmgr's gethierarchicalName is broken
               Component|framework
                 Version|DEV300m76
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|scripting
             Assigned to|sb
             Reported by|fs





------- Additional comments from f...@openoffice.org Fri Apr 16 06:10:55 +0000 
2010 -------
In some recent builds, before the great configmgr renewal, the following patter
used to work:
- create a configuration node (at the config provider)
- retrieve one of its sub nodes
- ask the sub node for its hierarchical name
  XHierarchicalName::getHierarchicalName
- create a new configuration node (at the config provider) using this
  hierarchical name

In m76, this doesn't work anymore. The reason is that getHierarchicalName now
returns a string which is no valid configuration node path anymore.

See the attached Basic macro to illustrate this: It displays the local and the
fully qualified name of a config sub node (getName and getHierarchicalName). In
m73 and earlier, the latter is a fully qualified node name, in m74 and later, it
isn't anymore.

Not sure if getByHierarchicalName was ever intended to provide a "re-usable"
node path,
http://api.openoffice.org/docs/common/ref/com/sun/star/configuration/HierarchyElement.html#XHierarchicalName
is not very clear about this. However, I don't see another way to obtain such a
complete node path from an existing node, so getByHierarchicalName seems the
canonic choice for this purpose.

---------------------------------------------------------------------
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

Reply via email to