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.datastore.helpers.get_protobuf_attribute_and_value() allows out-of-range long integers · Issue #132 · googleapis/google-cloud-python

gcloud.datastore.helpers.get_protobuf_attribute_and_value() allows out-of-range long integers #132

New issue
Copy link
New issue
Copy link
Closed
Closed
gcloud.datastore.helpers.get_protobuf_attribute_and_value() allows out-of-range long integers#132
Copy link
Assignees
tseaver
Labels
🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

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

If I construct an integer too long to encode as a 64-bit integer, get_protobuf_attribute_and_value() does not raise a ValueError:

>>> gcloud.datastore.helpers.get_protobuf_attribute_and_value
>>> too_long = 1 << 63
>>> get_protobuf_attribute_and_value(too_long)
('integer_value', 9223372036854775808L)

even though that value is not usable for an 'integer_value' field:

>>> from gcloud.datastore.datastore_v1_pb2 import Property
>>> pb = Property()
>>> pb.value.integer_value = too_long
...
File ".../lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py", line 119, in CheckValue
    raise ValueError('Value out of range: %d' % proposed_value)
ValueError: Value out of range: 9223372036854775808

Activity

Next
  1. tseaver
    changed the title [-]gcloud.dataset.helpers.get_protobuf_attribute_and_value() allows out-of-range long integers[/-] [+]gcloud.datastore.helpers.get_protobuf_attribute_and_value() allows out-of-range long integers[/+] on Sep 16, 2014
  2. tseaver
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    api: datastoreIssues related to the Datastore API.
    on Sep 22, 2014
  3. silvolu
    added this to the This milestone has been deleted milestone on Sep 24, 2014
  4. tseaver
    closed this as completedin 0abfa25on Sep 25, 2014
  5. dhermes
    added a commit that references this issue on Sep 25, 2014

    Merge pull request #182 from tseaver/132-enforce_int64_bounds_for_pro…

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

    chore(deps): update actions/setup-python action to v4 [autoapprove] (#…

    b81a9b3
  10. vchudnov-g
    added a commit that references this issue on May 8, 2023

    chore: Bump gapic-generator-python version to 1.3.0 (#132)

    51cbd03
  11. 87 remaining items

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

    build(python): exit with success status if no samples found (#132)

    8b59570

    chore: release 1.25.1 (#132)

    d2f112f

    chore: add missing kokoro configs following up to 3.7 and 3.8 drop (#132

    8411910

    chore(revert): revert preventing normalization (#132)

    d1aaf90

    tests: revert testing prerelease deps on Python 3.9 (#132)

    1be7220

    chore: update .repo-metadata.json (#132)

    74638e6

    chore(deps): update dependency google-cloud-storage to v2.10.0 (#132)

    7833b5b

    feat: asyncio system tests (#132)

    080e88d

    Merge pull request #132 from cguardia/update-contributing-readme

    114aa9f
  13. parthea
    added 2 commits that reference this issue on Mar 2, 2026

    chore(deps): update pypa/cibuildwheel action to v2.5.0 (#132)

    1e78175

    feat: add templates for python samples projects (#506) (#132)

    1070487
  14. parthea
    added 3 commits that reference this issue on Mar 9, 2026

    chore: remove duplicate files (#132)

    6fb3e17

    feat: add client_options to base class (#132)

    dd229d3

    fix: disambiguate after grouping by packages and versions (#132)

    f59cb7c
  15. ohmayr
    added a commit that references this issue on Mar 31, 2026

    chore(deps): update pypa/cibuildwheel action to v2.5.0 (#132)

    a4b96c5
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: datastoreIssues related to the Datastore 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

    No milestone

    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.