Commit 312305bb authored by nfcalabria's avatar nfcalabria
Browse files

Bugfix

parent 6f23dfe4
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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);

                }
            }
        }
    }