Ah, yes you are right. It makes sense this way. Thanks, Arndt.
2014-05-20 11:47 GMT+02:00 Chris McDonough <[email protected]>: > Oops sorry saw you already know that. No. We want the error to be raised > because it should be possible for people to handle it with an exception > view. > > On May 20, 2014 5:43:23 AM EDT, Arndt Droullier <[email protected]> wrote: > >> Hi, >> >> from time to time I run into URLDecodeError exceptions caused by >> (useless) urls with unknown encoding. >> >> The exceptions can easily be handled in an exception view but in general >> shouldn't such decoding errors be handled as a HTTP 400 error by default >> and fail silently and not raise a pyramid (server side) exception? >> Actually the client failed to send a valid request. >> >> >> e.g. >> http:// ... +++Result:+\xd5\xd2\xb2\xbb\xb5\xbdPost ... >> >> Traceback (most recent call last): >> File "/var/opt/pyramid/local/lib/python2.7/site-packages/ >> pyramid_exclog-0.7-py2.7.egg/pyramid_exclog/__init__.py", line 111, in >> exclog_tween >> return handler(request) >> File "/var/opt/pyramid/local/lib/python2.7/site-packages/ >> pyramid-1.4.2-py2.7.egg/pyramid/router.py", line 82, in handle_request >> info = routes_mapper(request) >> File "/var/opt/pyramid/local/lib/python2.7/site-packages/ >> pyramid-1.4.2-py2.7.egg/pyramid/urldispatch.py", line 79, in __call__ >> raise URLDecodeError(e.encoding, e.object, e.start, e.end, e.reason) >> URLDecodeError: 'utf8' codec can't decode byte 0xc2 in position 75: >> invalid continuation byte >> >> Arndt. >> >> >> ---------------------------------------------------------------------------------------------- >> Arndt Droullier, Nive GmbH, Köln, Germany >> >> > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. > -- ---------------------------------------------------------------------------------------------- Arndt Droullier, Nive GmbH, Köln, Germany Cloud Framework: < New Prototype > www.nive.co -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
