Skip to content

Commit 1444f70

Browse files
authored
Merge pull request #2392 from IBM/issue-2391
FetchResourcePayloadsDAO hits an error condition under debug without _since parameter #2391
2 parents d6fbdad + a8e93ab commit 1444f70

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

fhir-persistence-jdbc/src/main/java/com/ibm/fhir/persistence/jdbc/dao/impl/FetchResourcePayloadsDAO.java

-2
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,12 @@ public int count(Connection c) throws FHIRPersistenceException {
181181
final String select = query.toString();
182182

183183
if (logger.isLoggable(Level.FINE)) {
184-
Timestamp from = Timestamp.from(fromLastUpdated);
185184
logger.fine("Resource count query: " + select + "; [" + fromLastUpdated + "]");
186185
}
187186

188187
try (PreparedStatement ps = c.prepareStatement(select)) {
189188
int a = 1;
190189

191-
192190
// Set the variables marking the start point of the scan
193191
ps.setTimestamp(a++, Timestamp.from(fromLastUpdated), UTC_CALENDAR);
194192

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public void handleStandardResponseStatus(int httpStatus) throws FHIROperationExc
386386
// e.g. if it comes back with 404 it may fail on the JobInstanceResponse.Parser.parse!
387387

388388
if (httpStatus == 401) {
389-
throw export.buildOperationException("Unauthorized to access the framework", IssueType.FORBIDDEN);
389+
throw export.buildOperationException("Unauthorized to access the Batch framework", IssueType.FORBIDDEN);
390390
}
391391

392392
if (httpStatus == 400) {

0 commit comments

Comments
 (0)