[tor-bugs] #34318 [Circumvention/BridgeDB]: BridgeDB doesn't like non-UTF8 encoded requests
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed May 27 18:04:05 UTC 2020
#34318: BridgeDB doesn't like non-UTF8 encoded requests
----------------------------------------+--------------------
Reporter: phw | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Circumvention/BridgeDB | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: 0.25 | Reviewer:
Sponsor: |
----------------------------------------+--------------------
I stumbled upon the following exception in BridgeDB's log:
{{{
Traceback (most recent call last):
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/twisted/web/http.py", line 1755, in dataReceived
finishCallback(data[contentLength:])
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/twisted/web/http.py", line 2171, in _finishRequestBody
self.allContentReceived()
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/twisted/web/http.py", line 2284, in allContentReceived
req.requestReceived(command, path, version)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/twisted/web/http.py", line 946, in requestReceived
self.process()
--- <exception caught here> ---
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/twisted/web/server.py", line 235, in process
self.render(resrc)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/twisted/web/server.py", line 302, in render
body = resrc.render(self)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/twisted/web/resource.py", line 265, in render
return m(request)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/bridgedb-0.10.0+34.ga6eb0d1c.dirty-
py3.7.egg/bridgedb/distributors/https/server.py", line 722, in render_POST
return CaptchaProtectedResource.render_POST(self, request)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/bridgedb-0.10.0+34.ga6eb0d1c.dirty-
py3.7.egg/bridgedb/distributors/https/server.py", line 573, in render_POST
request.args = stringifyRequestArgs(request.args)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-
packages/bridgedb-0.10.0+34.ga6eb0d1c.dirty-
py3.7.egg/bridgedb/distributors/https/server.py", line 109, in
stringifyRequestArgs
arg = arg if isinstance(arg, str) else arg.decode("utf-8")
builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in
position 1: invalid continuation byte
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/34318>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list