changeset 6545:4254af66832a

fix LimitFindResults + LimitFindInstances for C-FIND
author Alain Mazy <am@orthanc.team>
date Fri, 19 Dec 2025 12:38:29 +0100
parents 3e52a722447a
children 5037896a19ae
files NEWS OrthancServer/Sources/OrthancFindRequestHandler.cpp
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu Dec 11 14:59:10 2025 +0100
+++ b/NEWS	Fri Dec 19 12:38:29 2025 +0100
@@ -3,6 +3,9 @@
 
 * Upgraded dependencies for static builds:
   - boost 1.89.0
+* Fix "LimitFindResults" and "LimitFindInstances" configurations that were not 
+  applied to C-FIND (bug introduced in 1.12.5).
+
 
 REST API
 --------
--- a/OrthancServer/Sources/OrthancFindRequestHandler.cpp	Thu Dec 11 14:59:10 2025 +0100
+++ b/OrthancServer/Sources/OrthancFindRequestHandler.cpp	Fri Dec 19 12:38:29 2025 +0100
@@ -441,6 +441,7 @@
     ResourceFinder finder(level, ResponseContentFlags_ID, context_.GetFindStorageAccessMode(), context_.GetIndex().HasFindSupport());
     finder.SetDatabaseLookup(lookup);
     finder.AddRequestedTags(requestedTags);
+    finder.SetDatabaseLimits(context_.GetDatabaseLimits(level));
 
     LookupVisitorV2 visitor(answers, *filteredInput, sequencesToReturn, privateCreators);
     finder.Execute(visitor, context_);