Opened 10 years ago
Closed 10 years ago
#15211 closed defect (wontfix)
dojo.store.JsonRest always return all items when target set to a json file
Reported by: | zhuxw | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Data | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
See the attached test page, when the store size is 2 items, the following queries now return the same result:
store.query({}, { start: 0 }); store.query({}, { start: 1 }); store.query({}, { start: 2 });
Expected: the 1st should return all rows, the 2nd should return only 1 row and the 3rd should return an empty array.
Attachments (2)
Change History (3)
Changed 10 years ago by
Attachment: | jsonrest.html added |
---|
Changed 10 years ago by
Attachment: | jsonrest.json added |
---|
This is the store data. Please put this in the same directory as jsonrest.html
comment:1 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
It is the server's responsibility to return the requested number of rows, the JsonRest? store is server-based store, so it only passes through what the server returns. In this case the server is incorrectly returning 2 rows for all three requests.
Note: See
TracTickets for help on using
tickets.
The main html file. Please change the path to dojo.js accordingly.