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

fix V2 auth timestamp #308

Merged
merged 2 commits into from
Jun 24, 2014
Merged

fix V2 auth timestamp #308

merged 2 commits into from
Jun 24, 2014

Conversation

Andrey-mp
Copy link
Contributor

Amazon describes common header parameters here -
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Common-Parameters.html
Timestamp should be in ISO8601 format. But datetime.isoformat() generates
string in format that not compatible with ISO8601.
This fact make botocore incompatible with Openstack implementation of Amazon
REST API (but euca2ools and boto work well with Openstack)
So I prefer to copy this from requestbuilder that used by euca2ools.

Amazon describes common header parameters here -
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Common-Parameters.html
Timestamp should be in ISO8601 format. But datetime.isoformat() generates
string in format that not compatible with ISO8601.
I prefer to copy this from requestbuilder that used by euca2ools.
@jamesls
Copy link
Member

jamesls commented Jun 19, 2014

Thanks for the PR. As per our contributing guidelines could you add a testcase for this change that demonstrates the problem?

@Andrey-mp
Copy link
Contributor Author

I've created a simple test that checks fields returned by add_auth method.

@jamesls jamesls merged commit df95375 into boto:develop Jun 24, 2014
jamesls added a commit that referenced this pull request Jun 24, 2014
* Andrey-mp-develop:
  add test for #308
  fix V2 auth timestamp
@jamesls
Copy link
Member

jamesls commented Jun 24, 2014

Merged, thanks!

jamesls added a commit that referenced this pull request Jun 25, 2014
* release-0.53.0:
  Bumping version to 0.53.0
  Update SES model to the latest version
  Fix regression in EC2 credential provider parsing
  Fix region endpoint for cn-north-1
  add test for #308
  fix V2 auth timestamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants