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

gridFsTemplate does not consider skip/limit parameters [DATAMONGO-2411] #3271

spring-projects-issues opened this issue Nov 9, 2019 · 1 comment


Copy link

@spring-projects-issues spring-projects-issues commented Nov 9, 2019

cac03 opened DATAMONGO-2411 and commented

Currently GridFsTemplate and ReactiveGridFsTemplate ignore skip and limit parameters of Query.

That is, the following code:

PageRequest pageRequest = PageRequest.of(0, 5);
gridFsTemplate.find(new Query().with(pageRequest))

returns all GridFsFile's stored in a database ignoring paging parameters.


We can use the limit and skip methods exposed in the GridFsFindIterable to support them.


Related issue: Add support for paging and sorting on GridFSTemplate.

Affects: 2.2.1 (Moore SR1)

Issue Links:

  • DATAMONGO-765 Add support for paging and sorting on GridFSTemplate

Referenced from: pull request #806

Copy link

@spring-projects-issues spring-projects-issues commented Nov 26, 2019

Mark Paluch commented

Closing this ticket as duplicate of DATAMONGO-765. We're going to continue with your pull request in DATAMONGO-765.

Also, the missing functionality is not a bug as previously we had no access to limit/offset methods when using DBObject API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants