Opened 8 years ago

Closed 7 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)

jsonrest.html (883 bytes) - added by zhuxw 8 years ago.
The main html file. Please change the path to dojo.js accordingly.
jsonrest.json (1.6 KB) - added by zhuxw 8 years ago.
This is the store data. Please put this in the same directory as jsonrest.html

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by zhuxw

Attachment: jsonrest.html added

The main html file. Please change the path to dojo.js accordingly.

Changed 8 years ago by zhuxw

Attachment: jsonrest.json added

This is the store data. Please put this in the same directory as jsonrest.html

comment:1 Changed 7 years ago by Kris Zyp

Resolution: wontfix
Status: newclosed

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.