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 — #652: Harden ACL 'save'/'reload' against missing element in server response. by tseaver · Pull Request #682 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Feb 26, 2015

Copy link
Copy Markdown
Contributor

Apparently, the back-end can (in some cases, at least) omit empty 'acl'
elements from the returned resource.

Fixes #652.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tseaver
Harden ACL 'save'/'reload' against missing element in server response.
770f328
Apparently, the back-end can (in some cases, at least) omit empty 'acl'
elements from the returned resource.

Fixes #652.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 26, 2015
@coveralls

coveralls commented Feb 26, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 770f328 on tseaver:652-handle_empty_acls into f0a1157 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Feb 26, 2015

Copy link
Copy Markdown
Contributor

LGTM.

I was kind of unclear in the discussion in #652 about whether this should be happening / other places we can deal with it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Feb 26, 2015

Copy link
Copy Markdown
Contributor Author

Having reload() DTRT fixes get_entities(), as well as anything else which calls _ensure_loaded().

FWIW, I don't understand why the back-end would "optimize away" the empty acl key: that seems silly in the extreme (like those 8 bytes are really gonna matter; adding the test to excluded it probably washes out whatever savings there are).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver added a commit that referenced this pull request Feb 26, 2015
@tseaver
Merge pull request #682 from tseaver/652-handle_empty_acls
51e286f
#652: Harden ACL 'save'/'reload' against missing element in server response.
@tseaver
tseaver merged commit 51e286f into googleapis:master Feb 26, 2015
@tseaver
tseaver deleted the 652-handle_empty_acls branch February 26, 2015 20:15
@dhermes dhermes mentioned this pull request Mar 12, 2015
Upgrading version to 0.4.3. #723
Merged
parthea added a commit that referenced this pull request Nov 22, 2025
@parthea
fix(deps): allow protobuf 3.19.5 (#682)
5c2c653
* fix(deps): allow protobuf 3.19.5

* explicitly exclude protobuf 4.21.0
parthea pushed a commit that referenced this pull request Nov 24, 2025
@software-dov
chore: add test support for Python 3.9 (#682)
c44c63c
Adds nox and CI targets for 3.9
parthea added a commit that referenced this pull request Nov 24, 2025
@parthea
build: use mypy<1.11.0 until #682 is fixed (#683)
ee218c4
* build: use mypy<1.11.0 until #682 is fixed

* add comment
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
chore: fix prerelease_deps nox session [autoapprove] (#682)
b219be9
Source-Link: https://togithub.com/googleapis/synthtool/commit/26c7505b2f76981ec1707b851e1595c8c06e90fc
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f946c75373c2b0040e8e318c5e85d0cf46bc6e61d0a01f3ef94d8de974ac6790
parthea added a commit that referenced this pull request Nov 24, 2025
@parthea
build: fix kokoro docs-presubmit build (#685)
d8d0606
Fixes #682
parthea pushed a commit that referenced this pull request Mar 2, 2026
@gcf-owl-bot
chore(python): auto approve template changes (#682)
211c05f
Source-Link: googleapis/synthtool@453a5d9
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:81ed5ecdfc7cac5b699ba4537376f3563f6f04122c4ec9e735d3b3dc1d43dd32
parthea pushed a commit that referenced this pull request Mar 6, 2026
@release-please
chore: release 2.18.0 (#682)
87b8a04
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 9, 2026
@release-please
chore(main): release 3.14.0 (#682)
81f7fc7
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

storage: some acl methods fail on empty (private) acl

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@tseaver @coveralls @dhermes @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.