Skip to content
Snippets Groups Projects
Commit 58bddbb3 authored by Adam Laskowski's avatar Adam Laskowski
Browse files

BIS-998: Fixes to tar export

parent 69855ff2
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -120,7 +120,7 @@ class ImagingArchiver
{
packager.addEntry(path,
file.lastModified(),
file.getTotalSpace(),
Files.size(file.toPath()),
checksumFunction.apply(new FileInputStream(file)),
new FileInputStream(file));
} catch (IOException exc)
......
......@@ -178,6 +178,11 @@ public class ImagingService implements ICustomDSSServiceExecutor
Serializable[] exportTypes = (Serializable[]) exportConfig.get("include");
if(exportTypes == null)
{
throw new UserFailureException("At least single export needs to be configured!");
}
ImagingArchiver archiver;
// Prepare archiver
......@@ -256,6 +261,11 @@ public class ImagingService implements ICustomDSSServiceExecutor
Serializable[] exportTypes = (Serializable[]) exportConfig.get("include");
if(exportTypes == null)
{
throw new UserFailureException("At least single export needs to be configured!");
}
// For each export type, perform adequate action
for (Serializable exportType : exportTypes)
{
......
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