Make code compatible with v4 auth and workaround webob bug.
Webob library has a bug https://github.com/Pylons/webob/issues/149
which causes modification of req.body after first access. So it's
critical to calculate the body hash before any other access is made.
auth_params should be empty for v4 auth algorythm.
Reviewed: https:/ /review. openstack. org/152112 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=fb588f87db6 5f28823f9e07a99 00c34c7b3576a2
Committed: https:/
Submitter: Jenkins
Branch: master
commit fb588f87db65f28 823f9e07a9900c3 4c7b3576a2
Author: Andrey Pavlov <email address hidden>
Date: Mon Feb 2 16:32:24 2015 +0300
Make code compatible with v4 auth and workaround webob bug.
Webob library has a bug https:/ /github. com/Pylons/ webob/issues/ 149
which causes modification of req.body after first access. So it's
critical to calculate the body hash before any other access is made.
auth_params should be empty for v4 auth algorythm.
Related-Bug: #1410622
Change-Id: I06d798a125b700 d9b4670448804d6 be27f978d75