Merge branch 'RED-5945' into 'master'
RED-5945: 500 when importing faulty archive Closes RED-5945 See merge request redactmanager/persistence-service!169
This commit is contained in:
commit
c4485ad26b
@ -280,6 +280,9 @@ public class DossierTemplateImportService {
|
||||
|
||||
}
|
||||
}
|
||||
if(importTemplateResult.getDossierTemplate() == null) {
|
||||
throw new BadRequestException("Provided archive is faulty");
|
||||
}
|
||||
return importTemplateResult;
|
||||
} finally {
|
||||
if (tempFile != null) {
|
||||
@ -289,7 +292,7 @@ public class DossierTemplateImportService {
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (IOException | BadRequestException e) {
|
||||
} catch (IOException e) {
|
||||
throw new BadRequestException(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user