Skip to content

Commit c1daa2b

Browse files
mehdimaaref7clement-dufaure
authored andcommitted
[BUG] 🐛 Fix Export csv number of results too low
Signed-off-by: Mehdi Maaref <mehdimaaref@live.fr>
1 parent 315ff15 commit c1daa2b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sugoi-api-rest-services/src/main/java/fr/insee/sugoi/services/controller/ExportController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void getAllUsers(
8585
String realm,
8686
@Parameter(
8787
description = "Name of the userStorage where the operation will be made",
88-
required = false)
88+
required = true)
8989
@PathVariable(name = "storage", required = false)
9090
String storage,
9191
@Parameter(description = "User's identifiant of user to search ")
@@ -239,7 +239,6 @@ private void getExportUsersWithStorages(
239239
}
240240

241241
if (foundUsers.isHasMoreResult()) {
242-
csvPrinter.close();
243242
pageable = new PageableResult(pageSize, 0, foundUsers.getSearchToken());
244243
} else {
245244
break;

0 commit comments

Comments
 (0)