This is an automated email from the git hooks/post-receive script. New commit to branch develop-1.1.x in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit 4d4f5e52f25c303cc77dacf211c152240b60eb41 Author: jcouteau <couteau@codelutin.com> Date: Mon Jan 18 17:56:12 2021 +0100 :bug: Applique la limite des 1990 paramètres de requête aux groupes également, cf. #10165 --- .../com/franciaflex/faxtomail/services/service/LdapServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/LdapServiceImpl.java b/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/LdapServiceImpl.java index 8e51e744..f17ef29f 100644 --- a/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/LdapServiceImpl.java +++ b/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/LdapServiceImpl.java @@ -135,7 +135,11 @@ public class LdapServiceImpl extends FaxToMailServiceSupport implements LdapServ userToHide.setHidden(true); faxtomailUserDao.update(userToHide); } - Collection<FaxToMailUserGroup> userGroupsToHide = faxtomailUserGroupDao.forNotIn(groupCache.values()); + List<List<FaxToMailUserGroup>> partitionedGroupCache = partition(new ArrayList<>(groupCache.values()), 1990); + Collection<FaxToMailUserGroup> userGroupsToHide = new ArrayList<>(); + for (List<FaxToMailUserGroup> userGroupCacheValues:partitionedGroupCache){ + userGroupsToHide.addAll(faxtomailUserGroupDao.forNotIn(userGroupCacheValues)); + } for (FaxToMailUserGroup userGroupToHide : userGroupsToHide) { userGroupToHide.setHidden(true); faxtomailUserGroupDao.update(userGroupToHide); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.