From 0efbf325771dcc88df56085bce5bc81d45746c8c Mon Sep 17 00:00:00 2001 From: leif stawnyczy Date: Mon, 27 Nov 2023 11:20:42 -0500 Subject: [PATCH] added back required param --- .../java/ca/uhn/fhir/jpa/search/PersistedJpaBundleProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/PersistedJpaBundleProvider.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/PersistedJpaBundleProvider.java index f84ed4dc501..29612b63dd5 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/PersistedJpaBundleProvider.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/PersistedJpaBundleProvider.java @@ -258,7 +258,7 @@ public class PersistedJpaBundleProvider implements IBundleProvider { // this is so we can be sure of when we hit the last page // (when doing offset searches) final List pidsSubList = - mySearchCoordinatorSvc.getResources(myUuid, theFromIndex, theToIndex, myRequest, requestPartitionId); + mySearchCoordinatorSvc.getResources(myUuid, theFromIndex, theToIndex + 1, myRequest, requestPartitionId); // max list size should be either the entire list, or from - to length int maxSize = Math.min(theToIndex - theFromIndex, pidsSubList.size()); theResponsePageBuilder.setTotalRequestedResourcesFetched(pidsSubList.size());