You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2017/09/22 04:26:57 UTC

[2/4] syncope git commit: [SYNCOPE-1211] When importing users, cannot import more than 200 users.

[SYNCOPE-1211] When importing users, cannot import more than 200 users.


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

Branch: refs/heads/2_0_X
Commit: e0727125cd48eb27a84b32bc25be96b690c5ed0b
Parents: 608d0da
Author: Frédéric Curvat <fc...@talend.com>
Authored: Wed Sep 20 14:50:43 2017 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Fri Sep 22 06:25:22 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/e0727125/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