Skip to content

Commit a74da5b

Browse files
Joonatan Mäkinencsc-jmrenovate-bot
committed
Skip: Update dependency aiohttp to v3.10.2 [SECURITY] (merge commit)
Merge branch 'renovate/pypi-aiohttp-vulnerability' into 'main' * Fix mypy errors * Skip: Update dependency aiohttp to v3.10.2 [SECURITY] See merge request https://gitlab.ci.csc.fi/sds-dev/sd-connect/swift-browser-ui/-/merge_requests/351 Approved-by: Hang Le <[email protected]> Co-authored-by: Joonatan Mäkinen <[email protected]> Co-authored-by: renovate-bot <group_183_bot_2d78ce980e0cdf1c1f6cfb0fa4c95beb@noreply.gitlab.ci.csc.fi> Merged by Joonatan Mäkinen <[email protected]>
2 parents 791033e + d1fa965 commit a74da5b

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ classifiers = [
2323
]
2424
dependencies = [
2525
"aiohttp-session==2.12.0",
26-
"aiohttp==3.9.5",
26+
"aiohttp==3.10.5",
2727
"redis==5.0.7",
2828
"asyncpg==0.29.0",
2929
"certifi==2024.7.4",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
aiohttp==3.9.5
1+
aiohttp==3.10.5
22
aiohttp-session==2.12.0
33
redis==5.0.7
44
asyncpg==0.29.0

swift_browser_ui/upload/cryptupload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import aiohttp.web
1414
import certifi
1515
import msgpack
16+
from aiohttp import ClientTimeout
1617

1718
import swift_browser_ui.common.vault_client as vault_client
1819
import swift_browser_ui.upload.common as common
@@ -264,7 +265,7 @@ async def upload_segment(self, order: int) -> int:
264265
),
265266
data=self.slice_segment(order),
266267
headers=headers,
267-
timeout=UPL_TIMEOUT,
268+
timeout=ClientTimeout(total=UPL_TIMEOUT),
268269
ssl=ssl_context,
269270
) as resp:
270271
LOGGER.info(f"Segment {order} finished with status {resp.status}.")

swift_browser_ui/upload/replicate.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import aiohttp.client
1010
import aiohttp.web
1111
import certifi
12+
from aiohttp import ClientTimeout
1213

1314
import swift_browser_ui.common.vault_client
1415
from swift_browser_ui.upload import common
@@ -103,7 +104,7 @@ async def a_sync_object_segments(self, manifest: str) -> str:
103104
"X-Auth-Token": self.token,
104105
"Accept-Encoding": "identity",
105106
},
106-
timeout=REPL_TIMEOUT,
107+
timeout=ClientTimeout(total=REPL_TIMEOUT),
107108
ssl=ssl_context,
108109
) as resp:
109110
if resp.status == 404:
@@ -136,7 +137,7 @@ def filter_with_prefix(segment: str) -> bool:
136137
"X-Auth-Token": self.token,
137138
"Accept-Encoding": "identity",
138139
},
139-
timeout=REPL_TIMEOUT,
140+
timeout=ClientTimeout(total=REPL_TIMEOUT),
140141
ssl=ssl_context,
141142
) as resp_g:
142143
length = int(resp_g.headers["Content-Length"])
@@ -163,7 +164,7 @@ def filter_with_prefix(segment: str) -> bool:
163164
to_url,
164165
data=resp_g.content.iter_chunked(65564),
165166
headers=headers,
166-
timeout=REPL_TIMEOUT,
167+
timeout=ClientTimeout(total=REPL_TIMEOUT),
167168
ssl=ssl_context,
168169
) as resp_p:
169170
LOGGER.debug(f"Segment {segment} status {resp_p.status}")
@@ -189,7 +190,7 @@ async def a_copy_object(self, object_name: str) -> None:
189190
"X-Auth-Token": self.token,
190191
"Accept-Encoding": "identity",
191192
},
192-
timeout=REPL_TIMEOUT,
193+
timeout=ClientTimeout(total=REPL_TIMEOUT),
193194
ssl=ssl_context,
194195
) as resp_g:
195196
# If the source object doesn't exist, abort
@@ -223,7 +224,7 @@ async def a_copy_object(self, object_name: str) -> None:
223224
common.generate_download_url(self.host, self.container, object_name),
224225
data=resp_g.content.iter_chunked(65564),
225226
headers=headers,
226-
timeout=REPL_TIMEOUT,
227+
timeout=ClientTimeout(total=REPL_TIMEOUT),
227228
ssl=ssl_context,
228229
) as resp_p:
229230
if resp_p.status == 408:
@@ -252,7 +253,7 @@ async def a_copy_object(self, object_name: str) -> None:
252253
),
253254
data=b"",
254255
headers=headers,
255-
timeout=REPL_TIMEOUT,
256+
timeout=ClientTimeout(total=REPL_TIMEOUT),
256257
ssl=ssl_context,
257258
) as resp:
258259
if resp.status != 201:
@@ -307,7 +308,7 @@ async def a_get_container_page(self, marker: str = "") -> list[str]:
307308
),
308309
headers={"X-Auth-Token": self.token},
309310
params={"marker": marker} if marker else None,
310-
timeout=REPL_TIMEOUT,
311+
timeout=ClientTimeout(total=REPL_TIMEOUT),
311312
ssl=ssl_context,
312313
) as resp:
313314
if resp.status >= 400:

0 commit comments

Comments
 (0)