Skip to content

Commit 109c1ef

Browse files
authoredMar 22, 2021
Merge pull request #2127 from IBM/issue-2126
Output missing when an bad incoming url is sent
2 parents 23046b7 + bb20adc commit 109c1ef

File tree

1 file changed

+2
-2
lines changed
  • operation/fhir-operation-bulkdata/src/main/java/com/ibm/fhir/operation/bulkdata/client

1 file changed

+2
-2
lines changed
 

‎operation/fhir-operation-bulkdata/src/main/java/com/ibm/fhir/operation/bulkdata/client/BulkDataClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ private PollingLocationResponse process(JobExecutionResponse response) {
689689
// e.g, Patient[1000,1000,200]:Observation[1000,1000,200],
690690
// COMPLETED means no file exported.
691691
String exitStatus = response.getExitStatus();
692-
log.fine(exitStatus);
693-
if (!"COMPLETED".equals(exitStatus) && request.contains("$export")) {
692+
log.fine(response.getJobXMLName() + " " + exitStatus);
693+
if (!"COMPLETED".equals(exitStatus) && !"bulkimportchunkjob".equals(response.getJobName())) {
694694
List<String> resourceTypeInfs = Arrays.asList(exitStatus.split("\\s*:\\s*"));
695695
List<PollingLocationResponse.Output> outputList = new ArrayList<>();
696696
for (String resourceTypeInf : resourceTypeInfs) {

0 commit comments

Comments
 (0)
Please sign in to comment.