On Sat, 2012-02-11 at 10:32 -0800, Zoltan Benedek wrote:
> Illegal character in URL -> "Internal system error",
> "UnicodeDecodeError"
> 
> The error can be reproduced. Might be the bug is in WebOb, but I
> cannot investigate deeper. May be there is a solution to avoid the
> system break.
> 
> When I type the URL: "http://localhost:6543/La%C3"; - it seems that
> "%C3" is an illegal character and I get:
> "Internal Server Error
> 
> The server encountered an unexpected internal server error
> 
> (generated by waitress)"
> 
> and:
> "/home/pyramid/prj1/MyProject$ /py27/bin/pserve development.ini
> Starting server in PID 2121.
> serving on http://0.0.0.0:6543
> 2012-02-11 19:27:28,661 ERROR [waitress][Dummy-4] Exception when
> serving /La�
> Traceback (most recent call last):
> File "/py27/lib/python2.7/site-packages/waitress-0.8-py2.7.egg/
> waitress/channel.py", line 325, in service
> task.service()
> File "/py27/lib/python2.7/site-packages/waitress-0.8-py2.7.egg/
> waitress/task.py", line 173, in service
> self.execute()
> File "/py27/lib/python2.7/site-packages/waitress-0.8-py2.7.egg/
> waitress/task.py", line 380, in execute
> appiter = self.channel.server.application(env, start_response)
> File "/py27/lib/python2.7/site-packages/pyramid-1.3a7-py2.7.egg/
> pyramid/router.py", line 187, in call
> response = self.handle_request(request)
> File "/py27/lib/python2.7/site-packages/pyramid_debugtoolbar-0.9.8-
> py2.7.egg/pyramid_debugtoolbar/toolbar.py", line 103, in toolbar_tween
> if (request.path.startswith(root_path) or (not remote_addr in hosts)):
> File "/py27/lib/python2.7/site-packages/WebOb-1.2b3-py2.7.egg/webob/
> request.py", line 482, in path
> bpath = bytes(self.path_info, self.url_encoding)
> File "/py27/lib/python2.7/site-packages/WebOb-1.2b3-py2.7.egg/webob/
> descriptors.py", line 68, in fget
> return req.encget(key, encattr=encattr)
> File "/py27/lib/python2.7/site-packages/WebOb-1.2b3-py2.7.egg/webob/
> request.py", line 174, in encget
> return val.decode(encoding)
> File "/py27/lib/python2.7/encodings/utf_8.py", line 16, in decode
> return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 3:
> unexpected end of data"
> 
> I tried to open an issue on github, but appears only for me.
> 

I commented on the issue in Github here:
https://github.com/Pylons/pyramid/issues/434#issuecomment-3922280

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to