Title: read-only permissions don't throw an exception on an attempted write · Issue #1846 · googleapis/google-cloud-python · GitHub
Open Graph Title: read-only permissions don't throw an exception on an attempted write · Issue #1846 · googleapis/google-cloud-python
X Title: read-only permissions don't throw an exception on an attempted write · Issue #1846 · googleapis/google-cloud-python
Description: When a user with read-only credentials on a bucket connects and attempts to write a blob, it silently exits as if it succeeded even though nothing was written. This service account has only read permissions on the bucket referenced (proj...
Open Graph Description: When a user with read-only credentials on a bucket connects and attempts to write a blob, it silently exits as if it succeeded even though nothing was written. This service account has only read pe...
X Description: When a user with read-only credentials on a bucket connects and attempts to write a blob, it silently exits as if it succeeded even though nothing was written. This service account has only read pe...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/1846
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"read-only permissions don't throw an exception on an attempted write","articleBody":"When a user with read-only credentials on a bucket connects and attempts to write a blob, it silently exits as if it succeeded even though nothing was written.\n\nThis service account has only read permissions on the bucket referenced (project and bucket name have been changed for this example).\n\n``` python\ncredentials = ServiceAccountCredentials.from_json_keyfile_dict(credentials_dict)\nclient = storage.Client(credentials=credentials, project='testproject')\nbucket = client.get_bucket('testbucket')\nblob = bucket.blob('testblob')\nblob.upload_from_string('this is a test blob\\n')\n```\n\nNothing gets uploaded, but the final function call exits with no indication of failure.\n","author":{"url":"https://github.com/Taywee","@type":"Person","name":"Taywee"},"datePublished":"2016-06-08T15:57:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/1846/google-cloud-python/issues/1846"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ec993322-578e-51df-d4da-c29e63fce9bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9182:2C9E7F:7C03CC:A6FF8E:6A4D39AA |
| html-safe-nonce | 489951797fe1ca59c691b37c0b6f0f0688a951812dfe8c43d5fc156a234e5b22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTgyOjJDOUU3Rjo3QzAzQ0M6QTZGRjhFOjZBNEQzOUFBIiwidmlzaXRvcl9pZCI6IjY5NjIwMjAyNjkyMjYyNzcyOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 23e5ce6fd10d537e593b155c1cc2ce4780d4a603e04149f6e82b413366aba5ce |
| hovercard-subject-tag | issue:159202337 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/1846/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b81d9394bd05132ace1e48e08127242245250fafe64ad05f43100d28d437ca49/googleapis/google-cloud-python/issues/1846 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b81d9394bd05132ace1e48e08127242245250fafe64ad05f43100d28d437ca49/googleapis/google-cloud-python/issues/1846 |
| og:image:alt | When a user with read-only credentials on a bucket connects and attempts to write a blob, it silently exits as if it succeeded even though nothing was written. This service account has only read pe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Taywee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width