GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gcloud.storage.iterator.KeyDataIterator chunking is off-by-one · Issue #143 · googleapis/google-cloud-python

gcloud.storage.iterator.KeyDataIterator chunking is off-by-one #143

New issue
Copy link
New issue
Copy link
Closed
Closed
gcloud.storage.iterator.KeyDataIterator chunking is off-by-one#143
Copy link
Assignees
tseaver
Labels
🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone
Storage Stable

Description

@tseaver
tseaver
opened on Sep 18, 2014
Issue body actions

'get_headers' computes the "Range:" header as '_bytes_written' - '_bytes_written + CHUNK_SIZE':

https://github.com/GoogleCloudPlatform/gcloud-python/blob/1f2aaf3606802f4f02eeb30e22e1082ef7f4594e/gcloud/storage/iterator.py#L215

and the '_bytes_written' gets updated to bump by the size of the chunk the server returns. Consider the initial read, assuming a CHUNK_SIZE of 100:

Range: bytes=0-100

Note that, per RFC2616. this will return up to 101 bytes (both bytes-position values are inclusive):

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.1

Activity

Next
  1. tseaver
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    api: storageIssues related to the Cloud Storage API.
    on Sep 22, 2014
  2. silvolu
    added this to the This milestone has been deleted milestone on Sep 24, 2014
  3. tseaver
    closed this as completedin be6e9b7on Sep 30, 2014
  4. silvolu
    added a commit that references this issue on Sep 30, 2014

    Merge pull request #196 from tseaver/143-storage.iterator.KeyDataIter…

    This issue will close once commit bc53038 is merged into the 'main' branch.
    bc53038
  5. jgeewax
    modified the milestones: This milestone has been deleted, Storage Stable on Jan 30, 2015
  6. yoshi-automation
    added
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Apr 7, 2020
  7. JustinBeckwith
    assigned
    tseaver
    on Feb 1, 2021
  8. atulep
    added 3 commits that reference this issue on Apr 3, 2023

    feat: Support for spoken punctuation and spoken emojis (#143)

    38bcb88

    feat: Support for spoken punctuation and spoken emojis (#143)

    11474a1

    feat: Support for spoken punctuation and spoken emojis (#143)

    f136e61
  9. 96 remaining items

  10. parthea
    added 9 commits that reference this issue on Nov 24, 2025

    chore: drop mention of Python 2.7 from templates (#143)

    cb4e1b0

    chore(python): remove configure_previous_major_version_branches (#143)

    c7c1b80

    chore: add default_version and codeowner_team to .repo-metadata.json (#…

    8f9451a

    fix: pass transaction's options to API in 'begin' (#143)

    85a201c

    chore: release 2.1.2 (#164)

    998b46b

    chore(python): exclude setup.py in renovate config (#143)

    e2955e0

    chore(deps): update dependency google-cloud-bigquery to v3.11.4 (#143)

    fe55937

    Fix TRAMPOLINE_BUILD_FILE in docs/common.cfg. (#143)

    5c4a4f4

    Release v0.9.0 (#143)

    7f0bf75
  11. parthea
    added 2 commits that reference this issue on Mar 2, 2026

    feat: Add support for server-side flow control (#143)

    c00687a

    ci: fix manylinux1 build (#143)

    8b84537
  12. parthea
    added 3 commits that reference this issue on Mar 9, 2026

    test: require kokoro test run as a presubmit (#143)

    8a9ac56

    fix: list_instances() uses filter_ arg (#143)

    311824d

    chore: add codeowner_team to .repo-metadata.json (#143)

    535b8d7
  13. ohmayr
    added a commit that references this issue on Mar 31, 2026

    ci: fix manylinux1 build (#143)

    95fe860
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    • Storage Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.