Skip to content

Commit

Permalink
fix: Fix a possible dead-loop during initialization (higress-group#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO authored Jan 3, 2025
1 parent 3b1e51e commit 12825df
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ public ResponseEntity<?> initialize(@RequestBody SystemInitRequest request) {
if (StringUtils.isAnyEmpty(adminUser.getName(), adminUser.getDisplayName(), adminUser.getPassword())) {
throw new ValidationException("Incomplete adminUser object.");
}
sessionService.initializeAdmin(adminUser);

if (!sessionService.isAdminInitialized()) {
sessionService.initializeAdmin(adminUser);
}

Map<String, Object> configs = new HashMap<>();
if (MapUtils.isNotEmpty(request.getConfigs())) {
Expand Down

0 comments on commit 12825df

Please sign in to comment.