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

Fix query with predication specification and cursored pageable #3057

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

radovanradic
Copy link
Contributor

Fix for #3056

@radovanradic radovanradic added the type: bug Something isn't working label Aug 8, 2024
@@ -53,19 +53,8 @@ public Object intercept(RepositoryMethodKey methodKey, MethodInvocationContext<O
}

Pageable pageable = getPageable(context);
if (pageable.isUnpaged()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this code because the same is being done below. And the issue was that in the reported issue, pageable.isUnpaged() evaluates to true (initialized only with sort, page size is not set) but expected result was CursoredPage and here Page was immediately returned causing ClassCastException.

Copy link

sonarqubecloud bot commented Aug 8, 2024

@radovanradic radovanradic linked an issue Aug 8, 2024 that may be closed by this pull request
@radovanradic radovanradic merged commit d819df0 into 4.8.x Aug 8, 2024
51 checks passed
@radovanradic radovanradic deleted the cursored-unpageable branch August 8, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Predicate builder doesn't work with cursored pagination
4 participants