summaryrefslogtreecommitdiffstats
path: root/base/tps-tomcat/src/org/dogtagpki/server/tps/profile/ProfileService.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/tps-tomcat/src/org/dogtagpki/server/tps/profile/ProfileService.java')
-rw-r--r--base/tps-tomcat/src/org/dogtagpki/server/tps/profile/ProfileService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/tps-tomcat/src/org/dogtagpki/server/tps/profile/ProfileService.java b/base/tps-tomcat/src/org/dogtagpki/server/tps/profile/ProfileService.java
index 6e52aeec6..9bff5188f 100644
--- a/base/tps-tomcat/src/org/dogtagpki/server/tps/profile/ProfileService.java
+++ b/base/tps-tomcat/src/org/dogtagpki/server/tps/profile/ProfileService.java
@@ -108,7 +108,6 @@ public class ProfileService extends PKIService implements ProfileResource {
Iterator<ProfileRecord> profiles = database.getRecords().iterator();
ProfileCollection response = new ProfileCollection();
-
int i = 0;
// skip to the start of the page
@@ -121,6 +120,7 @@ public class ProfileService extends PKIService implements ProfileResource {
// count the total entries
for ( ; profiles.hasNext(); i++) profiles.next();
+ response.setTotal(i);
if (start > 0) {
URI uri = uriInfo.getRequestUriBuilder().replaceQueryParam("start", Math.max(start-size, 0)).build();