Skip to content

Conversation

arjenhoekema
Copy link
Contributor

DataObject:
Don't fetch contentLength from content for partial objects when the actual size of the object is 0 (zero) bytes

PaginatedIterator:
Collection seems to be appending elements when not necessary. Seems the 'shouldAppend' checks if the current page is divisible by the new (current +1) position.
For a 'page,limit' of 100 this check returns 'TRUE' for positions like 1, 2, 4 ...
IMO the check should be the other way around, so the new position is divisible by the 'limit.page'.

Don't fetch contentLength from content for partial objects when the actual size of the object is 0 (zero) bytes

PaginatedIterator:
Collection seems to be appending elements when not necessary. Seems the 'shouldAppend' checks if the current page is divisible by the new (current +1) position.
For a 'page,limit' of 100 this check returns 'TRUE' for positions like 1, 2, 4 ...
IMO the check should be the other way around, so the new position is divisible by the 'limit.page'.
@arjenhoekema
Copy link
Contributor Author

Now pushing into the 'working' branch :-)

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 6b74c9b on arjenhoekema:working into 33d1598 on rackspace:working.

jamiehannaford pushed a commit that referenced this pull request Jan 10, 2014
DataObject->contentLength and PaginatedIterator->shouldAppend
@jamiehannaford jamiehannaford merged commit 0e0064c into rackspace:working Jan 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants