[ 
https://issues.apache.org/jira/browse/USERGRID-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Todd Nine updated USERGRID-263:
-------------------------------
    Description: 
The following scenario worked in 1.0. We've broken this in 2.0.

Steps to reproduce.

1) Perform a query that returns a cursor, a limit may or may not be supplied.

curl -X GET "http://localhost:8080/usergrid/test1/users?limit=20";

2) Perform the next page query and change the limit

curl -X GET 
"http://localhost:8080/usergrid/test1/users?limit=40&cursor=cXVlcnlBbmRGZXRjaDsxOzk4NzA6UDFXa08zSVRTdGFXNncwRmZ2VkZudzswOw==";
 

*What should happen*

A response with  40 entities, assuming there are 40 to return.

*What actually happens*

A response with 20 entities, which is from the original query, but not what was 
requested.

  was:
The following scenario worked in 1.0. We've broken this in 2.0.

Steps to reproduce.

1) Perform a query that returns a cursor, a limit may or may not be supplied.

curl -X GET "http://localhost:8080/usergrid/test1/users?limit=20";

2) Perform the next page query and change the limit

curl -X GET 
"http://localhost:8080/usergrid/test1/users?limit=40&cursor=cXVlcnlBbmRGZXRjaDsxOzk4NzA6UDFXa08zSVRTdGFXNncwRmZ2VkZudzswOw==";
 

*What should happen*

A response with  40 entities, assuming there are 40 to return.

*What actually happens*

A response with 20 entities, which is from the cursor, but not what was 
requested.


> Limit not honored on subsequent requests with cursors
> -----------------------------------------------------
>
>                 Key: USERGRID-263
>                 URL: https://issues.apache.org/jira/browse/USERGRID-263
>             Project: Usergrid
>          Issue Type: Bug
>          Components: Stack
>    Affects Versions: 2.0
>            Reporter: Todd Nine
>
> The following scenario worked in 1.0. We've broken this in 2.0.
> Steps to reproduce.
> 1) Perform a query that returns a cursor, a limit may or may not be supplied.
> curl -X GET "http://localhost:8080/usergrid/test1/users?limit=20";
> 2) Perform the next page query and change the limit
> curl -X GET 
> "http://localhost:8080/usergrid/test1/users?limit=40&cursor=cXVlcnlBbmRGZXRjaDsxOzk4NzA6UDFXa08zSVRTdGFXNncwRmZ2VkZudzswOw==";
>  
> *What should happen*
> A response with  40 entities, assuming there are 40 to return.
> *What actually happens*
> A response with 20 entities, which is from the original query, but not what 
> was requested.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to