Closed BYEONGRYEOL closed 1 month ago
Describe the bug 어드민이 유저 이메일로 단건 조회시 json parsing 오류
To Reproduce
AdminUserController에서 유저 Pageable 조회시 조회 조건으로 이메일을 넣어서 조회하면, Pageable 객체에 요소 한 개만 넣어서 오류가 나는 부분이 있음
자세히말하면 PageImpl에 하나의 요소만을 집어넣으면 Unpaged 구현체가 동작하는데, 1개의 요소만을 포함하고있다고 명시적으로 알려주지 않았기 때문에 발생한다.
// before PageImpl<>(List.of(responseDto)) //after pageNumber , pageSize, total 각각 명시 PageImpl<>(List.of(responseDto), PageRequest.of(0, 1), 1);
Additional context Add any other context about the problem here.
Describe the bug 어드민이 유저 이메일로 단건 조회시 json parsing 오류
To Reproduce
AdminUserController에서 유저 Pageable 조회시 조회 조건으로 이메일을 넣어서 조회하면, Pageable 객체에 요소 한 개만 넣어서 오류가 나는 부분이 있음
자세히말하면 PageImpl에 하나의 요소만을 집어넣으면 Unpaged 구현체가 동작하는데, 1개의 요소만을 포함하고있다고 명시적으로 알려주지 않았기 때문에 발생한다.
Additional context Add any other context about the problem here.