Skip to content
Snippets Groups Projects
Commit 312305bb authored by nfcalabria's avatar nfcalabria
Browse files

Bugfix

parent 6f23dfe4
No related branches found
No related tags found
No related merge requests found
...@@ -167,15 +167,16 @@ public class ArchiveService { ...@@ -167,15 +167,16 @@ public class ArchiveService {
// relPaths is calculated from base node // relPaths is calculated from base node
String targetNodeVosPath = fileInfo.getVirtualPath(); String targetNodeVosPath = fileInfo.getVirtualPath();
String vosPath = pointingEntryDescriptors.stream() List<String> linkVosPaths = pointingEntryDescriptors.stream()
.filter(ed->ed.getTargetNodeVosPath().equals(targetNodeVosPath)) .filter(ed->ed.getTargetNodeVosPath().equals(targetNodeVosPath))
.findFirst().get().getVosPath(); .map(ed->ed.getVosPath())
.collect(Collectors.toList());
for(String vosPath : linkVosPaths) {
String relPath = vosPath.substring(commonParent.length()); String relPath = vosPath.substring(commonParent.length());
this.insertEntryIntoArchive(fileInfo, supportDir, relPath, tokenPrincipal, portalLocationUrls, servletRequest, handler); this.insertEntryIntoArchive(fileInfo, supportDir, relPath, tokenPrincipal, portalLocationUrls, servletRequest, handler);
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment