Fix AuthorizationException with AWSV4SignerAsyncAuth when the doc ID has special characters. (#848)

* Lifecycle integration tests.

Signed-off-by: dblock <[email protected]>

* Added a test that makes sure the slash is properly encoded.

Signed-off-by: dblock <[email protected]>

* Added more tests for signer and _make_path.

Signed-off-by: Nathalie Jonathan <[email protected]>

* Prevent AIOHttpConnection from encoding the url a second time.

Signed-off-by: Nathalie Jonathan <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
Signed-off-by: Nathalie Jonathan <[email protected]>
Co-authored-by: dblock <[email protected]>
This commit is contained in:
nathaliellenaa
2024-11-27 17:50:22 -05:00
committed by GitHub
co-authored by dblock
parent bf9add4eed
commit b9e48dc847
13 changed files with 445 additions and 9 deletions
+3 -1
View File
@@ -15,6 +15,8 @@ import ssl
import warnings
from typing import Any, Collection, Mapping, Optional, Union
import yarl
from .._async._extra_imports import aiohttp, aiohttp_exceptions # type: ignore
from .._async.compat import get_running_loop
from .._async.http_aiohttp import AIOHttpConnection
@@ -210,7 +212,7 @@ class AsyncHttpConnection(AIOHttpConnection):
try:
async with self.session.request(
method,
url,
yarl.URL(url, encoded=True),
data=body,
auth=auth,
headers=req_headers,