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
Custom extension of Pageable as parameter causes query method to be rejected [DATACMNS-1383] #1819
Comments
Oliver Drotbohm commented It looks like |
Rimal commented I have the @EnableNeo4jRepositories(basePackages = "com.app.backend.repository", repositoryBaseClass = BaseRepositoryImpl.class)
Is there anything else, I should check? |
Oliver Drotbohm commented What's the actual repository interface that this is bootstrapped for. I have a fix for the too strict parameter check but that method should be considered a query method in the first place |
Rimal commented This was a project on spring SDN. The issue got fixed when I added support in |
Oliver Drotbohm commented As indicated, I already have a fix for the detection problem, thanks. I'd just like to understand why your custom |
Oliver Drotbohm commented You should see this working on the latest snapshots. If you'd like me to look into the bootstrap issue, feel free to add a sample project into it |
Rimal commented While writing a sample project, I realised, you were right. It was working fine! My original project is working with the custom fix I have submitted in the pull request. Going back in git history, found that when I was facing the issue, I guess, we added it later as a part of some other fix. Apologies! |
Oliver Drotbohm commented No worries, Rimal. Happy that we've got it working for you. The fix you suggested is still very valuable as we should support this scenario for actual query methods, too. I.e. while the scenario you documented here should not cause a problem if configured properly, it will still come up if someone tries to use a custom extension of Happy coding! |
Rimal opened DATACMNS-1383 and commented
If a child class of Pageable is passed in a page query, then there is an error in server startup
Here is a sample code:
Affects: 2.0.9 (Kay SR9)
Backported to: 2.0.10 (Kay SR10), 1.13.15 (Ingalls SR15)
The text was updated successfully, but these errors were encountered: