You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Todd Nine (JIRA)" <ji...@apache.org> on 2014/12/04 18:18:13 UTC

[jira] [Created] (USERGRID-263) Limit not honored on subsequent requests with cursors

Todd Nine created USERGRID-263:
----------------------------------

             Summary: 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 cursor, but not what was requested.



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