: "Report did not run successfully");
sccee.addException(sce);
throw sccee;
}
ReportExecExportFormat format = fmt == null
? ReportExecExportFormat.XML
: fmt;
LOG.debug("Exporting result of {} as {}", reportExec, format);
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
response.addHeader("Content-Disposition", "attachment; filename=" + reportExec.getReport().getName() + "."
+ format.name().toLowerCase());
// streaming SAX handler from a compressed byte array stream
ByteArrayInputStream bais = new ByteArrayInputStream(reportExec.getExecResult());
ZipInputStream zis = new ZipInputStream(bais);
try {