syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [4/4] syncope git commit: [SYNCOPE-1211] When importing users, cannot import more than 200 users. - This closes #63
Date Fri, 22 Sep 2017 04:26:59 GMT
[SYNCOPE-1211] When importing users, cannot import more than 200 users. - This closes #63


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/d4e098a2
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/d4e098a2
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/d4e098a2

Branch: refs/heads/master
Commit: d4e098a2916d37824174b026ee7ae9f3004ba833
Parents: 5779d31
Author: Frédéric Curvat <fcurvat@talend.com>
Authored: Wed Sep 20 14:50:43 2017 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Fri Sep 22 06:26:37 2017 +0200

----------------------------------------------------------------------
 .../src/main/resources/scripted/SearchScript.groovy         | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/d4e098a2/core/migration/src/main/resources/scripted/SearchScript.groovy
----------------------------------------------------------------------
diff --git a/core/migration/src/main/resources/scripted/SearchScript.groovy b/core/migration/src/main/resources/scripted/SearchScript.groovy
index 5ff79d1..6e10651 100644
--- a/core/migration/src/main/resources/scripted/SearchScript.groovy
+++ b/core/migration/src/main/resources/scripted/SearchScript.groovy
@@ -122,10 +122,13 @@ case "__ACCOUNT__":
       
       result.add(item)
     });
-  
+
   if (result.size() == pageSize) {
-    pagedResultsCookie = pagedResultsCookie + result.size();
-    result.add([(OperationOptions.OP_PAGED_RESULTS_COOKIE): pagedResultsCookie]);
+    if (pagedResultsCookie == "") {
+      pagedResultsCookie = pagedResultsCookie + result.size();
+    } else {
+      pagedResultsCookie = Integer.toString(pagedResultsCookie.toInteger() + result.size());
+    }
   }
   break
 


Mime
View raw message