Issue 23113 - API: cfgmgr2.ORootElementValueSetUpdateAccess::XChangesBatch
Summary: API: cfgmgr2.ORootElementValueSetUpdateAccess::XChangesBatch
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: steffen.grund
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-02 16:10 UTC by steffen.grund
Modified: 2013-02-24 21:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
A zipped test. Just extract and follow the README inside. (6.08 KB, application/octet-stream)
2003-12-02 16:53 UTC, steffen.grund
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description steffen.grund 2003-12-02 16:10:02 UTC
The XChangesBatch::getPendingChanges() method returns not the right ElementChange.
XChangesBatch::commitChanges does not work.

See code in attached zip file.
Comment 1 steffen.grund 2003-12-02 16:53:37 UTC
Created attachment 11700 [details]
A zipped test. Just extract and follow the README inside.
Comment 2 steffen.grund 2003-12-02 16:54:50 UTC
reassign to jb.
Comment 3 steffen.grund 2003-12-02 17:19:57 UTC
jb: I have to correct myself: commitChanges DOES work.
Comment 4 joerg.barfurth 2003-12-15 14:07:38 UTC
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.



Comment 5 joerg.barfurth 2003-12-15 14:08:52 UTC
.
Comment 6 joerg.barfurth 2004-02-02 12:15:03 UTC
->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.
Comment 7 joerg.barfurth 2004-02-02 13:03:11 UTC
reassigning
Comment 8 ssmith 2004-05-10 09:57:48 UTC
Now Fixed.
The resolveUnoObjects function now handles sets of simple values

The XChangesBatch::getPendingChanges() method now returns the right 
ElementChange.
Comment 9 ssmith 2004-06-16 17:49:14 UTC
Sarah->Steffen: 
You will need to update your zipped test as ftp is no longer an extensible 
element of org.openoffice.Office.Common/ExternalApps.
Comment 10 ssmith 2004-06-17 10:17:18 UTC
reasigning
Comment 11 ssmith 2004-06-17 10:18:29 UTC
reassign to sg
Comment 12 ssmith 2004-06-17 10:25:07 UTC
fixed
Comment 13 steffen.grund 2004-06-17 15:36:13 UTC
Checked on Solaris and Windows and works -> verified.
Comment 14 steffen.grund 2004-07-23 17:16:15 UTC
Changes went on tests went into qadev18, checked on Windows and Solaris, works
-> closed.