Skip to content

[ESSI-61] Bugfix for ESSI-61 structural corruption by node merging#186

Merged
randalldfloyd merged 1 commit intomasterfrom
ESSI-61
Jan 30, 2019
Merged

[ESSI-61] Bugfix for ESSI-61 structural corruption by node merging#186
randalldfloyd merged 1 commit intomasterfrom
ESSI-61

Conversation

@aploshay
Copy link

@aploshay aploshay commented Jan 26, 2019

When a structure is converted into an OrderedList, the existing check for unique ids for each node only checks the current OrderedList -- and since we are nesting them, id collisions can occur between nodes nested at different levels. This resolves that issue by persisting and sharing the node_cache between OrderedList instances.

Note that this also required a corresponding change in ActiveFedora::Orders::OrderedList to allow extending use of existing NodeCache. That change is already present in a new branch on forked active-fedora, but also posted for review as a PR. (We're already pinned to an old release candidate version of active-fedora, so there doesn't seem much harm in forking off of that to make the change we need.)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0008%) to 96.652% when pulling 6a80c02 on ESSI-61 into b53de31 on master.

@randalldfloyd randalldfloyd merged commit 342a3a5 into master Jan 30, 2019
@randalldfloyd randalldfloyd deleted the ESSI-61 branch January 30, 2019 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants