Skip to content
Snippets Groups Projects
Commit ec34976b authored by Gaëlle FOURNIER's avatar Gaëlle FOURNIER
Browse files

Fix xelians return

parent 9a5bc95b
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,6 @@ public class VitamAgencyService { ...@@ -152,7 +152,6 @@ public class VitamAgencyService {
RequestResponse r = importAgencies(vitamContext, actualAgencies.stream() RequestResponse r = importAgencies(vitamContext, actualAgencies.stream()
.filter( agency -> !id.equals(agency.getId()) ) .filter( agency -> !id.equals(agency.getId()) )
.collect(Collectors.toList())); .collect(Collectors.toList()));
LOGGER.error("is ok ? {}", r.isOk());
return r.isOk(); return r.isOk();
} }
......
...@@ -126,10 +126,10 @@ public class ProbativeValueInternalService { ...@@ -126,10 +126,10 @@ public class ProbativeValueInternalService {
File file = new File(workspaceOperationPath, operationId + ".json"); File file = new File(workspaceOperationPath, operationId + ".json");
FileUtils.copyInputStreamToFile(reportStream, file); FileUtils.copyInputStreamToFile(reportStream, file);
} catch (VitamClientException e) { } catch (VitamClientException e) {
LOGGER.error(e.getMessage()); LOGGER.error("Error while getting probative value report from Vitam", e.getMessage());
throw new InternalServerException("Unable to get Probative Value Report from VITAM", e); throw new InternalServerException("Unable to get Probative Value Report from VITAM", e);
} catch (IOException e) { } catch (IOException e) {
LOGGER.error(e.getMessage()); LOGGER.error("Error on probative value report", e.getMessage());
throw new InternalServerException("Unable to create JSON from Probative Value Report", e); throw new InternalServerException("Unable to create JSON from Probative Value Report", e);
} }
...@@ -153,11 +153,11 @@ public class ProbativeValueInternalService { ...@@ -153,11 +153,11 @@ public class ProbativeValueInternalService {
dataMap.put("report", report); dataMap.put("report", report);
PdfFileGenerator.createPdf(odtTemplate, pdfOutputStream, dataMap); PdfFileGenerator.createPdf(odtTemplate, pdfOutputStream, dataMap);
} catch (Exception e) { } catch (Exception e) {
LOGGER.error(e.getMessage()); LOGGER.error("Unable to create PDF from Probative Value Report template ODT", e.getMessage());
throw new InternalServerException("Unable to create PDF from Probative Value Report template ODT", e); throw new InternalServerException("Unable to create PDF from Probative Value Report template ODT", e);
} }
} catch (InvalidParseOperationException | VitamClientException exc) { } catch (InvalidParseOperationException | VitamClientException exc) {
LOGGER.error(exc.getMessage()); LOGGER.error("Unable to create PDF from Probative Value Report Json value", exc.getMessage());
throw new InternalServerException("Unable to create PDF from Probative Value Report Json value", exc); throw new InternalServerException("Unable to create PDF from Probative Value Report Json value", exc);
} }
...@@ -172,7 +172,7 @@ public class ProbativeValueInternalService { ...@@ -172,7 +172,7 @@ public class ProbativeValueInternalService {
streams.put(operationId + ".json", new FileInputStream(jsonFile)); streams.put(operationId + ".json", new FileInputStream(jsonFile));
streams.put(operationId + ".pdf", new FileInputStream(pdfFile)); streams.put(operationId + ".pdf", new FileInputStream(pdfFile));
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
LOGGER.error(e.getMessage()); LOGGER.error("Unable to generate ZIP", e.getMessage());
throw new InternalServerException(String.format("Unable to generate ZIP: %s", e.getMessage()), e); throw new InternalServerException(String.format("Unable to generate ZIP: %s", e.getMessage()), e);
} }
ZipUtils.generate(streams, outputStream); ZipUtils.generate(streams, outputStream);
......
...@@ -98,7 +98,6 @@ export class ContextPreviewComponent implements OnInit { ...@@ -98,7 +98,6 @@ export class ContextPreviewComponent implements OnInit {
); );
}); });
} else { } else {
console.log('ResetForm: ', this.tabs.selectedIndex);
this.tabLinks[this.tabs.selectedIndex].resetForm(this.context); this.tabLinks[this.tabs.selectedIndex].resetForm(this.context);
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment