Apache OpenOffice (AOO) Bugzilla – Issue 23113
API: cfgmgr2.ORootElementValueSetUpdateAccess::XChangesBatch
Last modified: 2013-02-24 21:08:30 UTC
The XChangesBatch::getPendingChanges() method returns not the right ElementChange. XChangesBatch::commitChanges does not work. See code in attached zip file.
Created attachment 11700 [details] A zipped test. Just extract and follow the README inside.
reassign to jb.
jb: I have to correct myself: commitChanges DOES work.
Elements of value sets are not resolved correctly when constructing ElementChange objects. Function resolveUnoObjects() in translatechanges.hxx only resolves them against the object factory and thus does not discover non-object elements.
.
->Sarah: In configmgr/source/api2/translatechanges.cxx, function resolveUnoObjects(), the branch taken if isSetChange()==true can only handle sets of objects, but not sets of simple values. The data object typeNodeChangeData is defined in source/inc/nodechangeinfo.hxx and source/treemgr/nodechangeinfo.cxx. Contact me directly, if you have further questions.
reassigning
Now Fixed. The resolveUnoObjects function now handles sets of simple values The XChangesBatch::getPendingChanges() method now returns the right ElementChange.
Sarah->Steffen: You will need to update your zipped test as ftp is no longer an extensible element of org.openoffice.Office.Common/ExternalApps.
reasigning
reassign to sg
fixed
Checked on Solaris and Windows and works -> verified.
Changes went on tests went into qadev18, checked on Windows and Solaris, works -> closed.