Loading src/main/java/it/inaf/ia2/transfer/service/ArchiveService.java +5 −4 Original line number Diff line number Diff line Loading @@ -167,15 +167,16 @@ public class ArchiveService { // relPaths is calculated from base node String targetNodeVosPath = fileInfo.getVirtualPath(); String vosPath = pointingEntryDescriptors.stream() List<String> linkVosPaths = pointingEntryDescriptors.stream() .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()); this.insertEntryIntoArchive(fileInfo, supportDir, relPath, tokenPrincipal, portalLocationUrls, servletRequest, handler); } } } } Loading Loading
src/main/java/it/inaf/ia2/transfer/service/ArchiveService.java +5 −4 Original line number Diff line number Diff line Loading @@ -167,15 +167,16 @@ public class ArchiveService { // relPaths is calculated from base node String targetNodeVosPath = fileInfo.getVirtualPath(); String vosPath = pointingEntryDescriptors.stream() List<String> linkVosPaths = pointingEntryDescriptors.stream() .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()); this.insertEntryIntoArchive(fileInfo, supportDir, relPath, tokenPrincipal, portalLocationUrls, servletRequest, handler); } } } } Loading