[issue44577] Probably defect in Python 3.7.11

2022-01-14 Thread Irit Katriel


Irit Katriel  added the comment:

Python 3,7 is no longer maintained. Please create a new issue if you see this 
on a current version (>= 3.9) and are able to provide more information.

--
nosy: +iritkatriel
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44577] Probably defect in Python 3.7.11

2021-07-09 Thread Ned Deily


Ned Deily  added the comment:

That excerpt is not executable by itself.  Without a reproducible test case and 
better traceback info, there is not enough information here to investigate 
further.

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44577] Probably defect in Python 3.7.11

2021-07-07 Thread Vladislav Kozlenko


Vladislav Kozlenko  added the comment:

It will be not easy as I'll need to create some sandbox for you. The current 
code version is not available for sharing.


But ok. For example here is a routing.py file:

from django.conf.urls import url
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.security.websocket import AllowedHostsOriginValidator
from channels.auth import AuthMiddlewareStack
from some_dir import MyConsumer

application = ProtocolTypeRouter({
'websocket': AllowedHostsOriginValidator(
AuthMiddlewareStack(
URLRouter([
url('api/socket/end-point-1', MyConsumer),
])
)
)
})

Let me know if you need more information

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44577] Probably defect in Python 3.7.11

2021-07-07 Thread Eric V. Smith


Eric V. Smith  added the comment:

Can you provide a short code example that reproduces this, preferably without 
using any third party libraries?

--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44577] Probably defect in Python 3.7.11

2021-07-07 Thread Vladislav Kozlenko


New submission from Vladislav Kozlenko :

After upgrade to 3.7.11 from 3.7.10 WebSockets start failing.
Django==2.1.2
djangorestframework==3.8.2
daphne==2.3.0
channels==2.3.1

>From the 3.7.11 changelog:
Following the controlling specification for URLs defined by WHATWG 
urllib.parse() now removes ASCII newlines and tabs from URLs, preventing such 
attacks.

Probably something is not good here now.


2021-07-07T10:11:23.439030174Z2021-07-07 10:11:23,438 ERROR [Failure instance: 
Traceback: : 'NoneType' object has no attribute 
'replace'
Error
2021-07-07T10:11:23.439074685Z/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/autobahn/websocket/protocol.py:2841:processHandshake
Error
2021-07-07T10:11:23.439091149Z/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/txaio/tx.py:366:as_future
Error
2021-07-07T10:11:23.439097914Z/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/twisted/internet/defer.py:167:maybeDeferred
Error
2021-07-07T10:11:23.439118640Z/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/daphne/ws_protocol.py:82:onConnect
Error
2021-07-07T10:11:23.439122445Z---  ---
Error
2021-07-07T10:11:23.439125845Z/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/twisted/internet/defer.py:167:maybeDeferred
Error
2021-07-07T10:11:23.439129088Z/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/daphne/server.py:200:create_application
Error
2021-07-07T10:11:23.439132308Z/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/channels/routing.py:58:__call__
Error
2021-07-07T10:11:23.439135496Z/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/channels/security/websocket.py:35:__call__
Error
2021-07-07T10:11:23.439138809Z/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/channels/security/websocket.py:53:valid_origin

--
components: Library (Lib)
messages: 397069
nosy: vladislavko
priority: normal
severity: normal
status: open
title: Probably defect in Python 3.7.11
type: crash
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com