Package: python3-yarl
Version: 1.3.0-1
Tags: upstream
Control: affects -1 + python3-aiohttp-wsgi

According to the documentation at
https://yarl.readthedocs.io/en/latest/api.html#yarl.URL.raw_query_string,
the raw_query_string member contains:

| Encoded query part of URL, empty string if query is missing.

However, that's not what it contains in practice as can be seen in the
following example:

>>> import yarl
>>> u = yarl.URL("/?x=!%21")
>>> assert u.raw_query_string == "x=!%21"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError
>>> u.raw_query_string
'x=!!'
>>>

This behaviour happens to break python3-aiohttp-wsgi where the
QUERY_STRING is supposed to contain the coded query part and
aiohttp_wsgi uses the raw_query_string member to implement that.

I verified that the issue is reproducible on 1.5.1 (not yet packaged).

Helmut

Reply via email to