Skip to content

Commit

Permalink
Merge branch 'release-1.31.2'
Browse files Browse the repository at this point in the history
* release-1.31.2:
  Bumping version to 1.31.2
  Update to latest models
  Fix generate_presigned_url for S3 operations where the modeled request URI contains a query component  (#2971)
  • Loading branch information
aws-sdk-python-automation committed Jul 11, 2023
2 parents 4fa1183 + 396f53f commit cf78d09
Show file tree
Hide file tree
Showing 9 changed files with 457 additions and 846 deletions.
12 changes: 12 additions & 0 deletions .changes/1.31.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"category": "s3",
"description": "Fix s3 presigned URLs for operations with query components (`#2962 <https://github.com/boto/botocore/issues/2962>`__)",
"type": "bugfix"
},
{
"category": "``cognito-idp``",
"description": "API model updated in Amazon Cognito",
"type": "api-change"
}
]
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
CHANGELOG
=========

1.31.2
======

* bugfix:s3: Fix s3 presigned URLs for operations with query components (`#2962 <https://github.com/boto/botocore/issues/2962>`__)
* api-change:``cognito-idp``: API model updated in Amazon Cognito


1.31.1
======

Expand Down
2 changes: 1 addition & 1 deletion botocore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os
import re

__version__ = '1.31.1'
__version__ = '1.31.2'


class NullHandler(logging.Handler):
Expand Down
399 changes: 217 additions & 182 deletions botocore/data/cognito-idp/2016-04-18/endpoint-rule-set-1.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions botocore/data/cognito-idp/2016-04-18/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3352,7 +3352,8 @@
"ChallengeResponsesType":{
"type":"map",
"key":{"shape":"StringType"},
"value":{"shape":"StringType"}
"value":{"shape":"StringType"},
"sensitive":true
},
"ChangePasswordRequest":{
"type":"structure",
Expand Down Expand Up @@ -6664,7 +6665,8 @@
"SessionType":{
"type":"string",
"max":2048,
"min":20
"min":20,
"sensitive":true
},
"SetRiskConfigurationRequest":{
"type":"structure",
Expand Down
4 changes: 4 additions & 0 deletions botocore/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,10 @@ def remove_bucket_from_url_paths_from_model(params, model, context, **kwargs):
bucket_path = '/{Bucket}'
if req_uri.startswith(bucket_path):
model.http['requestUri'] = req_uri[len(bucket_path) :]
# Strip query off the requestUri before using as authPath. The
# HmacV1Auth signer will append query params to the authPath during
# signing.
req_uri = req_uri.split('?')[0]
# If the request URI is ONLY a bucket, the auth_path must be
# terminated with a '/' character to generate a signature that the
# server will accept.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# The short X.Y version.
version = '1.31'
# The full version, including alpha/beta/rc tags.
release = '1.31.1'
release = '1.31.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
Loading

0 comments on commit cf78d09

Please sign in to comment.