Skip to content
Snippets Groups Projects
Commit 4aea8c5b authored by srosse's avatar srosse
Browse files

OO-1000: zombie relation between a group and a deleted repository entry exists

parent d11959f3
No related branches found
No related tags found
No related merge requests found
......@@ -287,11 +287,13 @@ public class OLATUpgrade_10_0_0 extends OLATUpgrade {
if(relationsToRepo.size() > 0) {
Group refGroup = businessGroup.getBaseGroup();
for(BGResourceRelation relationToRepo:relationsToRepo) {
RepositoryEntryUpgrade entry = lookupRepositoryEntry(relationToRepo.getResource());
Set<RepositoryEntryUpgradeToGroupRelation> groupRelations = entry.getGroups();
if(entry == null) {
continue;
}
boolean found = false;
Set<RepositoryEntryUpgradeToGroupRelation> groupRelations = entry.getGroups();
for(RepositoryEntryUpgradeToGroupRelation groupRelation:groupRelations) {
if(groupRelation.getGroup().equals(refGroup)) {
found = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment