-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[injection] 2.3.8 broke certain regex match patterns #2670
Comments
Reproduced. |
I've encountered the same problem. This code: import aiohttp.web
import asyncio
async def hello(request):
name = request.match_info['name']
return aiohttp.web.Response(text = f'{name}')
app = aiohttp.web.Application()
app.router.add_get('/{name}', hello)
if __name__ == '__main__':
aiohttp.web.run_app(app) With this request:
results in
Expected:
It is not problem in aiohttp 2.3.7 with yarl <1.0.0 |
Fixed by 2.3.9 release |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
#2667 causes the following scenario to break:
which compiles to:
re.compile('\\/v1\\/grid\\/(?P<variable>[^{}/]+)\\/(?P<interval_type>[^{}/]+)\\/(?P<date>[^{}/]+)')
which causes the following match group:
and with this code that was recently modified in aiohttp:
yields
Expected behaviour
should not strip out the date from the datetime string
Actual behaviour
date is getting stripped out
Steps to reproduce
Your environment
aiohttp 2.3.8
yarl 1.0.0
The text was updated successfully, but these errors were encountered: