MappingAwarePageableArgumentResolver accidentally drops default Pageable returned from delegate PageableHandlerMethodArgumentResolver [DATAREST-906]#1274
I am assuming you're talking about a controller method here? Who's resolving the Pageable in the first place? What does the request look like? What does your setup for PageableHandlerMethodArgumentResolver} look like?
Looks like the newly introduced MappingAwarePageableArgumentResolver (to fix DATAREST-883) accidentally drops Pageable instances that don't have no Sort instance attached to it, which unfortunately is the case for the default one being returned from PageableHandlerMethodArgumentResolver
Michael Igler opened DATAREST-906 and commented
After upgrading to spring-boot 1.4.1 which includes Hopper-SR3 I get a NPE in the following code section when Pageable is not set explicitly:
public Page<Translation> findTranslationsBy(String isoCode, Pageable pageable) {
log.info("" + pageable.getPageSize());
....
}
Setting HOPPER-SR2 in pom.xml fixes the problem as a default page-size is taken into account.
Affects: 2.4.5 (Gosling SR5), 2.5.3 (Hopper SR3)
Issue Links:
Referenced from: pull request #231
Backported to: 2.5.4 (Hopper SR4), 2.4.6 (Gosling SR6)
2 votes, 7 watchers
The text was updated successfully, but these errors were encountered: