From a24e7c3cfcaa5349b087be940a784b2da890538b Mon Sep 17 00:00:00 2001 From: Andrey Subbotin Date: Tue, 12 Jul 2016 09:31:24 +0400 Subject: [PATCH] PL-7476 Paging does not work when using in-memory security constraints --- .../core/src/com/haulmont/cuba/core/app/DataManagerBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/com/haulmont/cuba/core/app/DataManagerBean.java b/modules/core/src/com/haulmont/cuba/core/app/DataManagerBean.java index f02682f514..9214273b55 100644 --- a/modules/core/src/com/haulmont/cuba/core/app/DataManagerBean.java +++ b/modules/core/src/com/haulmont/cuba/core/app/DataManagerBean.java @@ -585,7 +585,7 @@ public class DataManagerBean implements DataManager { int maxResults = (requestedFirst + requestedMax) * factor; int i = 0; while (filteredCollection.size() < setSize) { - if (i++ > 10) { + if (i++ > 1000) { log.warn("In-memory distinct: endless loop detected for " + context); break; }