Bug 1074322 - REST /task/query parameter pageSize=10 returns all the tasks.
Summary: REST /task/query parameter pageSize=10 returns all the tasks.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ER1
: 6.0.2
Assignee: Marco Rietveld
QA Contact: Ivo Bek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-09 19:06 UTC by Marek Baluch
Modified: 2016-09-20 05:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:50:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot (175.38 KB, image/png)
2014-03-09 19:06 UTC, Marek Baluch
no flags Details

Description Marek Baluch 2014-03-09 19:06:27 UTC
Description of problem:
Accessing http://localhost:8080/business-central/rest/task/query?language=en-UK&pageSize=5 returns all tasks in the database. If there are 10 then 10 will be in the returned list.

Expected results:
Only the first 5 tasks should be in the returned result.

Additional info:
See attached screenshot which defines pageSize=1.

Comment 1 Marek Baluch 2014-03-09 19:06:56 UTC
Created attachment 872453 [details]
screenshot

Comment 2 Marek Baluch 2014-03-09 19:08:12 UTC
I also noticed that the tasks are not sorted. It might improved UX if the tasks where sorted based on ID.

Comment 3 Marco Rietveld 2014-03-13 20:40:54 UTC
Fixed. Waiting for flags to cherry-pick to 6.0.x. 

Commits: 

master:
https://github.com/droolsjbpm/droolsjbpm-integration/commit/79231d84

Comment 4 Marco Rietveld 2014-03-13 20:41:20 UTC
BTW, good catch, Marek!

Comment 5 Marco Rietveld 2014-03-20 11:35:30 UTC
Fixed on 6.0.x. Commits: 

https://github.com/droolsjbpm/jbpm/commit/0e63010d
https://github.com/droolsjbpm/jbpm/commit/c307845b
https://github.com/droolsjbpm/droolsjbpm-integration/commit/c83287c2
https://github.com/droolsjbpm/droolsjbpm-integration/commit/8de5aa59
https://github.com/droolsjbpm/droolsjbpm-integration/commit/b5ac771d

FYI: the max number of results that a query will now return has been limited to 1000. I can't imagine that returning more than 1000 results is practical.

Comment 6 Ivo Bek 2014-05-05 09:44:36 UTC
Verified in BPMS 6.0.2.ER2


Note You need to log in before you can comment on or make changes to this bug.