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 — Preserve ACL when copying or renaming blob. by daspecster · Pull Request #2409 · googleapis/google-cloud-python

Conversation

@daspecster

@daspecster daspecster commented Sep 23, 2016

Copy link
Copy Markdown
Contributor

See: #2389

ACL settings are not held when copying a blob or renaming a blob.

Adds preserve_acl to Bucket.copy_blob and Bucket.rename_blob.

Sorry, something went wrong.

Uh oh!

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

All reactions
@daspecster daspecster added the api: storage Issues related to the Cloud Storage API. label Sep 23, 2016
@daspecster daspecster assigned tseaver and dhermes Sep 23, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 23, 2016
@daspecster daspecster mentioned this pull request Sep 23, 2016
storage.bucket.Bucket.copy_blob missing option to preserve ACL #2389
Closed
tseaver
tseaver suggested changes Sep 23, 2016
View reviewed changes
Comment thread google/cloud/storage/bucket.py Outdated

def copy_blob(self, blob, destination_bucket, new_name=None,
client=None):
client=None, preserve_acl=False):

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread google/cloud/storage/bucket.py Outdated
return new_blob

def rename_blob(self, blob, new_name, client=None):
def rename_blob(self, blob, new_name, client=None, preserve_acl=False):

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

tseaver
tseaver reviewed Sep 26, 2016
View reviewed changes
Comment thread unit_tests/storage/test_bucket.py Outdated
self.assertEqual(new_blob.name, NEW_NAME)
self.assertIsInstance(new_blob.acl, ObjectACL)
self.assertFalse(new_blob.acl.loaded)
self.assertEqual(new_blob.acl.entities, {})

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

daspecster added 3 commits September 27, 2016 17:52
@daspecster
Preserve ACL when copying or renaming blob. Closes googleapis#2389
99cf261
@daspecster
Switch preserve_acl default to True.
4ce1fcc
@daspecster
Correct order of operations. Add more testing.
04ea4f7
@daspecster
daspecster force-pushed the add-storage-preserve-acl branch from 8e85462 to 04ea4f7 Compare September 27, 2016 21:54
@daspecster

daspecster commented Sep 27, 2016

Copy link
Copy Markdown
Contributor Author

I finally circled back around.
@tseaver I think I found the issue! I had the wrong order of operations.
I also added assertions for the expected requests.

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver
tseaver approved these changes Sep 28, 2016
View reviewed changes

@tseaver tseaver left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
@daspecster
daspecster merged commit a7cb215 into googleapis:master Sep 28, 2016
@daspecster
daspecster deleted the add-storage-preserve-acl branch September 28, 2016 09:23
@theacodes theacodes unassigned dhermes Sep 28, 2018
parthea pushed a commit that referenced this pull request Apr 1, 2026
@TrevorBergeron
feat: Initial support for biglake iceberg tables (#2409)
ac05f59
parthea pushed a commit that referenced this pull request Apr 1, 2026
@sycai
chore: librarian release pull request: 20260217T233413Z (#2461)
0ce08bd
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:1a2a85ab507aea26d787c06cc7979decb117164c81dd78a745982dfda80d4f68
<details><summary>bigframes: 2.36.0</summary>

##
[2.36.0](google/bigframes@v2.35.0...v2.36.0)
(2026-02-17)

### Features

* Initial support for biglake iceberg tables (#2409)
([ae35a989](google/bigframes@ae35a989))

* add bigquery.ai.generate_table function (#2453)
([b925aa24](google/bigframes@b925aa24))

### Documentation

* fix generate_text and generate_table input docs (#2455)
([078bd32e](google/bigframes@078bd32e))

* update multimodal dataframe notebook to use public APIs (#2456)
([342fa723](google/bigframes@342fa723))

* use direct API for pdf chunk and pdf extract (#2452)
([543ce52c](google/bigframes@543ce52c))

* use direct API for audio transcription (#2447)
([59cbc5db](google/bigframes@59cbc5db))

* Add EXIF metadata extraction example to multimodal notebook (#2429)
([84c6f883](google/bigframes@84c6f883))

* Update multimodal notebook to use public runtime helpers (#2451)
([e36dd8b4](google/bigframes@e36dd8b4))

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@tseaver tseaver tseaver approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@tseaver tseaver

Labels

api: storage Issues related to the Cloud Storage API. 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.

Uh oh!

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

4 participants

@daspecster @tseaver @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.