You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by te...@apache.org on 2020/05/14 14:26:45 UTC

[incubator-streampipes] 02/02: fix bug: data lake paging api without page number returned wrong pae

This is an automated email from the ASF dual-hosted git repository.

tex pushed a commit to branch STREAMPIPES-79
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit 1ba5010a3b82fc20612a8136fe1b91ce0db75356
Author: tex <te...@fzi.de>
AuthorDate: Thu May 14 16:25:01 2020 +0200

    fix bug: data lake paging api without page number returned wrong pae
---
 .../org/apache/streampipes/rest/impl/datalake/DataLakeManagementV3.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/datalake/DataLakeManagementV3.java b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/datalake/DataLakeManagementV3.java
index 65786d2..4f8fbff 100644
--- a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/datalake/DataLakeManagementV3.java
+++ b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/datalake/DataLakeManagementV3.java
@@ -225,7 +225,7 @@ public class DataLakeManagementV3 {
   }
 
   public PageResult getEvents(String index, int itemsPerPage) throws IOException {
-    int page = getMaxPage(index, itemsPerPage);
+    int page = getMaxPage(index, itemsPerPage) - 1;
     return getEvents(index, itemsPerPage, page);
   }