René's URL Explorer Experiment


Title: gcloud.datastore.helpers.get_protobuf_attribute_and_value() allows out-of-range long integers · Issue #132 · googleapis/google-cloud-python · GitHub

Open Graph Title: gcloud.datastore.helpers.get_protobuf_attribute_and_value() allows out-of-range long integers · Issue #132 · googleapis/google-cloud-python

X Title: gcloud.datastore.helpers.get_protobuf_attribute_and_value() allows out-of-range long integers · Issue #132 · googleapis/google-cloud-python

Description: 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_attri...

Open Graph Description: 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 >>> t...

X Description: 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_va...

Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/132

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gcloud.datastore.helpers.get_protobuf_attribute_and_value() allows out-of-range long integers","articleBody":"If I construct an integer too long to encode as a 64-bit integer, get_protobuf_attribute_and_value() does not raise a `ValueError`:\n\n```\n\u003e\u003e\u003e gcloud.datastore.helpers.get_protobuf_attribute_and_value\n\u003e\u003e\u003e too_long = 1 \u003c\u003c 63\n\u003e\u003e\u003e get_protobuf_attribute_and_value(too_long)\n('integer_value', 9223372036854775808L)\n```\n\neven though that value is not usable for an 'integer_value' field:\n\n```\n\u003e\u003e\u003e from gcloud.datastore.datastore_v1_pb2 import Property\n\u003e\u003e\u003e pb = Property()\n\u003e\u003e\u003e pb.value.integer_value = too_long\n...\nFile \".../lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py\", line 119, in CheckValue\n    raise ValueError('Value out of range: %d' % proposed_value)\nValueError: Value out of range: 9223372036854775808\n```\n","author":{"url":"https://github.com/tseaver","@type":"Person","name":"tseaver"},"datePublished":"2014-09-16T15:26:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/132/google-cloud-python/issues/132"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:177e13f7-c467-3f4d-a0b0-3e98dc8812ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8E70:299194:10E9715:16AB0F1:6A4D8E0D
html-safe-nonce050548c0d559dc4b9572e73bdff6075d2b28ffaf7426113e661c1f0ea3f4ff69
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTcwOjI5OTE5NDoxMEU5NzE1OjE2QUIwRjE6NkE0RDhFMEQiLCJ2aXNpdG9yX2lkIjoiNzg3MTA5NzE2NTk3MTI5NTc1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac06f3def69b23e7df9af9f8fd81a2fd7a60a3a094c5836ec56d8eaf68f5544da8
hovercard-subject-tagissue:42895116
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/132/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d0b3255a15efae4bacf61accd2cf2c520c83c3e9eecb043ad844846e46d4e967/googleapis/google-cloud-python/issues/132
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d0b3255a15efae4bacf61accd2cf2c520c83c3e9eecb043ad844846e46d4e967/googleapis/google-cloud-python/issues/132
og:image:altIf 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 >>> t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametseaver
hostnamegithub.com
expected-hostnamegithub.com
None9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id16316451
octolytics-dimension-repository_nwogoogleapis/google-cloud-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16316451
octolytics-dimension-repository_network_root_nwogoogleapis/google-cloud-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebffd5484f01713a661b03469b77678f72b6574ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/google-cloud-python/issues/132#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F132
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F132
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fgoogle-cloud-python
Reloadhttps://github.com/googleapis/google-cloud-python/issues/132
Reloadhttps://github.com/googleapis/google-cloud-python/issues/132
Reloadhttps://github.com/googleapis/google-cloud-python/issues/132
Please reload this pagehttps://github.com/googleapis/google-cloud-python/issues/132
googleapis https://github.com/googleapis
google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-cloud-python
Fork 1.7k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-cloud-python
Star 5.3k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-cloud-python
Code https://github.com/googleapis/google-cloud-python
Issues 439 https://github.com/googleapis/google-cloud-python/issues
Pull requests 129 https://github.com/googleapis/google-cloud-python/pulls
Discussions https://github.com/googleapis/google-cloud-python/discussions
Actions https://github.com/googleapis/google-cloud-python/actions
Projects https://github.com/googleapis/google-cloud-python/projects
Security and quality 0 https://github.com/googleapis/google-cloud-python/security
Insights https://github.com/googleapis/google-cloud-python/pulse
Code https://github.com/googleapis/google-cloud-python
Issues https://github.com/googleapis/google-cloud-python/issues
Pull requests https://github.com/googleapis/google-cloud-python/pulls
Discussions https://github.com/googleapis/google-cloud-python/discussions
Actions https://github.com/googleapis/google-cloud-python/actions
Projects https://github.com/googleapis/google-cloud-python/projects
Security and quality https://github.com/googleapis/google-cloud-python/security
Insights https://github.com/googleapis/google-cloud-python/pulse
gcloud.datastore.helpers.get_protobuf_attribute_and_value() allows out-of-range long integershttps://github.com/googleapis/google-cloud-python/issues/132#top
https://github.com/tseaver
🚨This issue needs some love.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22%3Arotating_light%3A%22
api: datastoreIssues related to the Datastore API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20datastore%22
triage meI really want to be triaged.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22triage%20me%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/tseaver
tseaverhttps://github.com/tseaver
on Sep 16, 2014https://github.com/googleapis/google-cloud-python/issues/132#issue-42895116
tseaverhttps://github.com/tseaver
🚨This issue needs some love.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22%3Arotating_light%3A%22
api: datastoreIssues related to the Datastore API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20datastore%22
triage meI really want to be triaged.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22triage%20me%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.