Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 어드민이 유저 이메일로 단건 조회시 json parsing 오류 #134

Closed
BYEONGRYEOL opened this issue Aug 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@BYEONGRYEOL
Copy link
Member

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.

@BYEONGRYEOL BYEONGRYEOL added the bug Something isn't working label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant