Apache OpenOffice (AOO) Bugzilla – Issue 14471
Configuration: cannot reinsert removed set elements without intervening commit
Last modified: 2017-05-20 11:33:25 UTC
The following configuration API (pseudo)code: aSetnode = (an updatable view onto a set node) aElement = aSetnode.getByName(name) aSetnode.removeByName(name) aSetNode.insertByName(othername) aSetnode.commitChanges does not work. In 1.1 Beta2 it causes a crash (internal bug #109342#). In later (srx645) versions, it causes a RuntimeException. The reason is, that the view layer does not handle insertion of non-detached data (and removal to non-detached elements) propely during commit. Workaround: call commitChanges between the removeByName and the insertByName operations.
Accepting
As this change is rather complex for limited benefit, this can only be fixed for OOo 2.0, if there is spare time (this also needs thorough testing).
Handing over: @sb: This bug indicates a rather deep problem in the handling of set elements in the 'view' layer (source directory 'treemgr'). This problem is best addressed with a restructuring of some of these things. Thus a fix will take some time and careful regression testing. I can assist with that and explain what changes I had planned when you get around to this. I also have a Basic testcase [non-public :-( ]
.
Reset assigne to the default "issues@openoffice.apache.org".