ZF-11193: Zend_Service_Amazon_SimpleDb never return the nextToken
Description
When doing a select query over a collection of more than 100 items Zend_Service_Amazon_SimpleDb don't return the nextToken value from the XML response.
The error is located at file Zend/Service/Amazon/SimpleDB.php line 405:
$nextToken = (string)$xml->NextToken;
And should be:
$nextToken = (string)$xml->SelectResult->NextToken;
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2011-07-28T19:59:49.000+0000
What happens with collections of less than 100 items? can the NextToken be received in the same way as in your patch? If so, I'll apply; if not, we need to check for existence and branch accordingly.
Posted by Kasper Pedersen (kasperjin) on 2012-08-27T11:22:25.000+0000
Patch worked for me with domains and queries of varying sizes. I think it was just a typo to begin with or maybe Amazon changed their response format.