Skip to content

Bugs #11201

@anylayer

Description

@anylayer

Describe the bug

This code snippet has a bug: it converts %2F to /, which causes the signature to fail. aiohttp/client.py 547 line

try:
    url = self._build_url(str_or_url)
except ValueError as e:
    raise InvalidUrlClientError(str_or_url) from e

To Reproduce

x-signature=rX7AnN6H6BGSzbXpbUQsY%2FXCC2w%3D => x-signature=rX7AnN6H6BGSzbXpbUQsY/XCC2w%3D

Expected behavior

x-signature=rX7AnN6H6BGSzbXpbUQsY%2FXCC2w%3D => x-signature=rX7AnN6H6BGSzbXpbUQsY%2FXCC2w%3D

Logs/tracebacks

nop

Python Version

3.13

aiohttp Version

Name: aiohttp
Version: 3.12.12

multidict Version

$ python -m pip show multidict

propcache Version

$ python -m pip show propcache

yarl Version

$ python -m pip show yarl

OS

macOS

Related component

Client

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreproducer: missingThis PR or issue lacks code, which reproduce the problem described or clearly understandable STR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions