Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a paginator bug involving optional tokens. #1057

Merged
merged 1 commit into from
Dec 22, 2016
Merged

Fix a paginator bug involving optional tokens. #1057

merged 1 commit into from
Dec 22, 2016

Conversation

psagers
Copy link
Contributor

@psagers psagers commented Oct 20, 2016

This bug causes the route53 list_resource_record_sets paginator to skip over records in certain cases.

list_resource_record_sets uses a 3-tuple of pagination tokens, but one of them will be absent on some records. If the second page starts with a 3-token item and the third page starts with a 2-token item, the previous third token will get left in the request parameters, causing the backend to advance past the targeted item.

This bug could cause the route53 list_resource_record_sets paginator to
skip over a record in certain cases.
@codecov-io
Copy link

codecov-io commented Oct 20, 2016

Current coverage is 97.57% (diff: 100%)

Merging #1057 into develop will increase coverage by <.01%

@@            develop      #1057   diff @@
==========================================
  Files            44         44          
  Lines          6917       6918     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           6749       6750     +1   
  Misses          168        168          
  Partials          0          0          

Powered by Codecov. Last update 351d276...b63fcd3

Copy link
Member

@jamesls jamesls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Contributor

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@kyleknap kyleknap added pr/ready-to-merge This PR is ready to be merged. and removed needs-additional-reviewer labels Dec 22, 2016
@jamesls jamesls merged commit b63fcd3 into boto:develop Dec 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/ready-to-merge This PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants