Skip to content

Commit

Permalink
Fix getting report output from a remote node
Browse files Browse the repository at this point in the history
This is a very partial backport of a fix for MID-6079.

If the nodeRef in report output is correct, the file should be now
remotely retrievable.
  • Loading branch information
mederly committed Mar 19, 2020
1 parent 3c44fd4 commit 975f5c2
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -53,6 +53,7 @@
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.xml.datatype.Duration;
import javax.xml.datatype.XMLGregorianCalendar;
Expand Down Expand Up @@ -432,6 +433,7 @@ public InputStream getReportOutputData(String reportOutputOid, OperationResult p
clusterExecutionHelper.execute(reportOutput.getNodeRef().getOid(), (client, result1) -> {
client.path(ClusterRestService.REPORT_FILE_PATH);
client.query(ClusterRestService.REPORT_FILE_FILENAME_PARAMETER, fileName);
client.accept(MediaType.APPLICATION_OCTET_STREAM_TYPE);
Response response = client.get();
Response.StatusType statusInfo = response.getStatusInfo();
LOGGER.debug("Retrieving report output file ({}) from {} finished with status {}: {}",
Expand Down

0 comments on commit 975f5c2

Please sign in to comment.