Message86649
I've got hgweb (the Mercurial web app) crashing on guess_type() in
2.6.2, but not in 2.5.4. I'm passing in a filename like
'/home/djc/src/hg/crew/templates/static/hglogo.png'. Doesn't happen on
the REPL, but happens in side the hg serve web server.
Traceback (most recent call last):
File "/home/djc/src/hg/crew/mercurial/hgweb/server.py", line 67, in
do_POST
self.do_write()
File "/home/djc/src/hg/crew/mercurial/hgweb/server.py", line 60, in
do_write
self.do_hgweb()
File "/home/djc/src/hg/crew/mercurial/hgweb/server.py", line 124, in
do_hgweb
for chunk in self.server.application(env, self._start_response):
File "/home/djc/src/hg/crew/mercurial/hgweb/hgwebdir_mod.py", line 91,
in __call__
return self.run_wsgi(req)
File "/home/djc/src/hg/crew/mercurial/hgweb/hgwebdir_mod.py", line
132, in run_wsgi
return (staticfile(static, fname, req),)
File "/home/djc/src/hg/crew/mercurial/hgweb/common.py", line 73, in
staticfile
ct = mimetypes.guess_type(path)[0] or "text/plain"
File "/usr/lib/python2.6/mimetypes.py", line 244, in guess_type
return guess_type(url, strict)
(... snip ...)
File "/usr/lib/python2.6/mimetypes.py", line 244, in guess_type
return guess_type(url, strict)
RuntimeError: maximum recursion depth exceeded |
|
Date |
User |
Action |
Args |
2009-04-27 08:57:31 | djc | set | recipients:
+ djc, georg.brandl |
2009-04-27 08:57:07 | djc | set | messageid: <1240822627.31.0.362059681673.issue5853@psf.upfronthosting.co.za> |
2009-04-27 08:56:56 | djc | link | issue5853 messages |
2009-04-27 08:56:29 | djc | create | |
|