Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use converted expiration parameter for signed_query_params to generate_signed_url_v2 #105

Closed
HemangChothani opened this issue Apr 13, 2020 · 2 comments · Fixed by #106
Closed
Assignees
Labels
api: storage Issues related to the googleapis/python-storage API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@HemangChothani
Copy link
Contributor

Issue created from the comment googleapis/google-cloud-python#9889 (comment)

suspected line of code.

"Expires": str(expiration),

/cc @frankyn

@HemangChothani HemangChothani added api: storage Issues related to the googleapis/python-storage API. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Apr 13, 2020
@HemangChothani HemangChothani self-assigned this Apr 13, 2020
@frankyn
Copy link
Member

frankyn commented Apr 13, 2020

Should be number of seconds since epoch instead of a strict conversion from int to str type: https://cloud.google.com/storage/docs/access-control/signed-urls-v2

Could you send a PR to fix this @HemangChothani?

@HemangChothani
Copy link
Contributor Author

@frankyn Yes, for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
2 participants