Title: Version 0.17 breaks GCS blob signing · Issue #1964 · googleapis/google-cloud-python · GitHub
Open Graph Title: Version 0.17 breaks GCS blob signing · Issue #1964 · googleapis/google-cloud-python
X Title: Version 0.17 breaks GCS blob signing · Issue #1964 · googleapis/google-cloud-python
Description: When trying to update our project to use gcloud 0.17, we found one of our tests which uses the generate_signed_url for GCS blobs started failing with the following error: project/tests/common.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _...
Open Graph Description: When trying to update our project to use gcloud 0.17, we found one of our tests which uses the generate_signed_url for GCS blobs started failing with the following error: project/tests/common.py:30...
X Description: When trying to update our project to use gcloud 0.17, we found one of our tests which uses the generate_signed_url for GCS blobs started failing with the following error: project/tests/common.py:30...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/1964
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Version 0.17 breaks GCS blob signing","articleBody":"When trying to update our project to use gcloud 0.17, we found one of our tests which uses the `generate_signed_url` for GCS blobs started failing with the following error:\n\n``` python\nproject/tests/common.py:302:\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nproject/gcs.py:159: in get_signed_url\n return self._content.generate_signed_url(delta, method=method, content_type=content_type)\n../../../../.virtualenvs/project/lib/python2.7/site-packages/gcloud/storage/blob.py:239: in generate_signed_url\n generation=generation)\n../../../../.virtualenvs/project/lib/python2.7/site-packages/gcloud/credentials.py:223: in generate_signed_url\n string_to_sign)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\ncredentials = \u003coauth2client.client.GoogleCredentials object at 0x10f435690\u003e, expiration = 1467937858\nstring_to_sign = 'GET\\n\\napplication/json\\n1467937858\\n/project-test-hcpc74v437kuc-ops/file7jcwv4v437kuc'\n\n def _get_signed_query_params(credentials, expiration, string_to_sign):\n \"\"\"Gets query parameters for creating a signed URL.\n\n :type credentials: :class:`oauth2client.client.AssertionCredentials`\n :param credentials: The credentials used to create a private key\n for signing text.\n\n :type expiration: int or long\n :param expiration: When the signed URL should expire.\n\n :type string_to_sign: string\n :param string_to_sign: The string to be signed by the credentials.\n\n :rtype: dict\n :returns: Query parameters matching the signing credentials with a\n signed payload.\n \"\"\"\n\u003e _, signature_bytes = credentials.sign_blob(string_to_sign)\nE AttributeError: 'GoogleCredentials' object has no attribute 'sign_blob'\n```\n","author":{"url":"https://github.com/dguaraglia","@type":"Person","name":"dguaraglia"},"datePublished":"2016-07-08T00:38:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/1964/google-cloud-python/issues/1964"}
| 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:1e3d83b4-779b-115a-19d9-0713320a5ece |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C060:110179:12C3609:197A8F0:6A4D6E6F |
| html-safe-nonce | c3f5354941ea0e3c04a7a681981cd02dfd94cfb6e945250cb1846dbbacd43b56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDYwOjExMDE3OToxMkMzNjA5OjE5N0E4RjA6NkE0RDZFNkYiLCJ2aXNpdG9yX2lkIjoiODU0OTA0ODQyNDk3NTkyMDc1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 593bf49e135f57e447568f3d75d9ab2ccbd5404b5e1f1e9dc9a28135819d9d37 |
| hovercard-subject-tag | issue:164437341 |
| 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/1964/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03ab5aadd3e61c0a2a53b27493faa6ae70fd8b4026ad753d0550867d1d8a4741/googleapis/google-cloud-python/issues/1964 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03ab5aadd3e61c0a2a53b27493faa6ae70fd8b4026ad753d0550867d1d8a4741/googleapis/google-cloud-python/issues/1964 |
| og:image:alt | When trying to update our project to use gcloud 0.17, we found one of our tests which uses the generate_signed_url for GCS blobs started failing with the following error: project/tests/common.py:30... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dguaraglia |
| hostname | github.com |
| expected-hostname | github.com |
| None | c78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e |
| 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 | 399fff412f48461d435721c009efc17ea44be72f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width