From d90cb099b8deababf4428626fd9e7f164fbe2ae1 Mon Sep 17 00:00:00 2001 From: Giambattista Bloisi Date: Tue, 11 Jun 2024 20:23:44 +0200 Subject: [PATCH] Fix for paginationStart parameter management --- .../eu/dnetlib/dhp/collection/plugin/rest/RestIterator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/plugin/rest/RestIterator.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/plugin/rest/RestIterator.java index 9037a454e..caef266d7 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/plugin/rest/RestIterator.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/plugin/rest/RestIterator.java @@ -249,7 +249,8 @@ public class RestIterator implements Iterator { String[] pageVal = m.group(0).split("="); pagination = Integer.parseInt(pageVal[1]); - // remove page start number from queryParams + // remove page start number from query and queryParams + queryParams = queryParams.replaceFirst("&?paginationStart=[0-9]+", ""); query = query.replaceFirst("&?paginationStart=[0-9]+", ""); }