summaryrefslogtreecommitdiffstats
path: root/base/tps-tomcat/src/org/dogtagpki/server/tps/authenticator/AuthenticatorService.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/tps-tomcat/src/org/dogtagpki/server/tps/authenticator/AuthenticatorService.java')
-rw-r--r--base/tps-tomcat/src/org/dogtagpki/server/tps/authenticator/AuthenticatorService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/tps-tomcat/src/org/dogtagpki/server/tps/authenticator/AuthenticatorService.java b/base/tps-tomcat/src/org/dogtagpki/server/tps/authenticator/AuthenticatorService.java
index e1d7ed5cf..6b77a0533 100644
--- a/base/tps-tomcat/src/org/dogtagpki/server/tps/authenticator/AuthenticatorService.java
+++ b/base/tps-tomcat/src/org/dogtagpki/server/tps/authenticator/AuthenticatorService.java
@@ -105,7 +105,6 @@ public class AuthenticatorService extends PKIService implements AuthenticatorRes
Iterator<AuthenticatorRecord> authenticators = database.getRecords().iterator();
AuthenticatorCollection response = new AuthenticatorCollection();
-
int i = 0;
// skip to the start of the page
@@ -118,6 +117,7 @@ public class AuthenticatorService extends PKIService implements AuthenticatorRes
// count the total entries
for ( ; authenticators.hasNext(); i++) authenticators.next();
+ response.setTotal(i);
if (start > 0) {
URI uri = uriInfo.getRequestUriBuilder().replaceQueryParam("start", Math.max(start-size, 0)).build();