Skip to content
Snippets Groups Projects
Commit 7db753d0 authored by nfcalabria's avatar nfcalabria
Browse files

Minor fix

parent 071f849d
No related branches found
No related tags found
No related merge requests found
...@@ -134,8 +134,8 @@ public class ArchiveService { ...@@ -134,8 +134,8 @@ public class ArchiveService {
// it will be initialized only when necessary // it will be initialized only when necessary
Map<Integer, String> portalLocationUrls = null; Map<Integer, String> portalLocationUrls = null;
List<ArchiveEntryDescriptor> noTargetEntryDescriptors = List<ArchiveEntryDescriptor> noTargetEntryDescriptors
entryDescriptors.stream().filter(ed -> !ed.isPointingToAnotherNode()) = entryDescriptors.stream().filter(ed -> !ed.isPointingToAnotherNode())
.collect(Collectors.toList()); .collect(Collectors.toList());
// Start with archive entry descriptors which don't point to another node // Start with archive entry descriptors which don't point to another node
...@@ -153,8 +153,8 @@ public class ArchiveService { ...@@ -153,8 +153,8 @@ public class ArchiveService {
} }
} }
List<ArchiveEntryDescriptor> pointingEntryDescriptors = List<ArchiveEntryDescriptor> pointingEntryDescriptors
entryDescriptors.stream().filter(ed -> ed.isPointingToAnotherNode()) = entryDescriptors.stream().filter(ed -> ed.isPointingToAnotherNode())
.collect(Collectors.toList()); .collect(Collectors.toList());
// Now archive entry descriptors pointing to another node // Now archive entry descriptors pointing to another node
...@@ -191,11 +191,15 @@ public class ArchiveService { ...@@ -191,11 +191,15 @@ public class ArchiveService {
return; return;
} }
// I expect only external links // I retrieve only external links
// local links have been resolved before calling this endpoint // local links have been resolved before calling this endpoint
// TODO: we need to discuss about internal links in container nodes
if (fileInfo.isLink()) { if (fileInfo.isLink()) {
String target = fileInfo.getTarget();
if (!target.startsWith("vos://")) {
downloadExternalLinkIntoArchive(fileInfo, relPath, downloadExternalLinkIntoArchive(fileInfo, relPath,
tokenPrincipal, handler, servletRequest); tokenPrincipal, handler, servletRequest);
}
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment