bug #6244
closedSortindex problems in complex operations like swap synonym and accepted and others
100%
Description
Norbert hatte gerade ein Problem. Er hat bei einer Subspezies diese zuerste mit einem Synonym (einer Spezies) getauscht mit der Swap Funktion.
Danach hat er versucht die (neue) akzeptierte Art an die Gattung zu hängen (da es ja vorher eine Unterart war, hing die neue Art jetzt an einer anderen Art als Kind, was natürlich falsch war).
Bei einer dieser beiden Prozeduren scheint der sortindex kaputt gegangen zu sein und zwar so, dass bei den Unterarten der alten Art ein Sortindex 2 mal vorkam (also 0,1,2,2,3). Auf Artebene fehlte ein sortindex ganz und einer anderer kam doppelt vor.
Das führte zwar nicht zu Exceptions aber zu undefiniertem Verhalten. Irgendetwas fehlte immer, jedoch bei Norbert anders als bei mir und auch im Portal wieder anders.
Related issues
Updated by Katja Luther over 6 years ago
The problems seem to be caused by the call of updateSortindex when the collection contains null values. Then the method breaks and the remaining elements of the collections are not handled anymore.
I added the call of HHH_9751_Util.removeAllNull() in the updateSortindex() method to avoid this.
Updated by Andreas Müller over 6 years ago
- Related to feature request #4766: Repair Methods for the cdm instance added
Updated by Katja Luther over 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 50
Applied in changeset cdmlib|6e7001423c0758a35b20a1fafd87979e897e67f8.
Updated by Katja Luther about 6 years ago
- Assignee changed from Katja Luther to Andreas Müller
Updated by Andreas Müller about 6 years ago
- Target version changed from Release 4.5 to Release 4.4
This was part of the bugfix release as far as I remember
Updated by Andreas Müller about 6 years ago
- Status changed from Resolved to Closed
- Assignee changed from Andreas Müller to Katja Luther
- Found in Version set to Release 4.4
As this is lot of work to test but we did not get any complaints anymore I close without final testing. Also we do have the sortIndex updater in Admin menu now which helps solving issues in case they appear again.