## page was renamed from MoinMoinBugs/PythonOptionAndPathInfo = Description = Describe the bug... !PythonOption Location when added to apache config can create error when wiki is called. == Steps to reproduce == ## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it. 1. I had a single nested location which doesn't require this option, but specifying the !PythonOption Location `/usr/local/www/srlwiki` within Location group results in an error. {{{ SetHandler python-program PythonPath "['/usr/local/www/srlwiki'] + sys.path" PythonHandler MoinMoin.request::RequestModPy.run PythonAutoReload On PythonDebug On PythonOption Location /usr/local/www/srlwiki }}} [Thu Dec 29 01:01:40 2005] [notice] Apache/2.0.55 (FreeBSD) mod_python/3.1.4 Python/2.4.2 configured -- resuming normal operations [Thu Dec 29 01:01:40 2005] [info] Server built: Dec 28 2005 14:19:12 [Thu Dec 29 01:01:40 2005] [debug] prefork.c(956): AcceptMutex: flock (default: flock) [Thu Dec 29 01:01:59 2005] [notice] mod_python: (Re)importing module 'MoinMoin.request' [Thu Dec 29 01:01:59 2005] [error] [client 128.146.218.129] PythonHandler MoinMoin.request::RequestModPy.run: Traceback (most recent call last): [Thu Dec 29 01:01:59 2005] [error] [client 128.146.218.129] PythonHandler MoinMoin.request::RequestModPy.run: File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 291, in HandlerDispatch\n arg=req, silent=hlist.silent) [Thu Dec 29 01:01:59 2005] [error] [client 128.146.218.129] PythonHandler MoinMoin.request::RequestModPy.run: File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 526, in resolve_object\n instance = parent(arg) [Thu Dec 29 01:01:59 2005] [error] [client 128.146.218.129] PythonHandler MoinMoin.request::RequestModPy.run: File "/usr/local/lib/python2.4/site-packages/MoinMoin/request.py", line 1700, in __init__\n self.fixScriptNameAndPathInfo(env) [Thu Dec 29 01:01:59 2005] [error] [client 128.146.218.129] PythonHandler MoinMoin.request::RequestModPy.run: File "/usr/local/lib/python2.4/site-packages/MoinMoin/request.py", line 1724, in fixScriptNameAndPathInfo\n restoredURI = env['SCRIPT_NAME'] + env['PATH_INFO'] [Thu Dec 29 01:01:59 2005] [error] [client 128.146.218.129] PythonHandler MoinMoin.request::RequestModPy.run: KeyError: 'PATH_INFO' [Thu Dec 29 01:14:51 2005] [info] removed PID file /var/run/httpd.pid (pid=4996) [Thu Dec 29 01:14:51 2005] [notice] caught SIGTERM, shutting down /!\ Please add an error log of 1.5.2 (if this still happens). == Example == ##Add URL that show the bug, screenshot or test wiki markup that fail... ##URL: ##attachment:screenshot.png ##{{{ ##Example wiki markup that fail ##}}} == Details == ## If you got a traceback, please save the traceback page as html and attach here: ## attachment:traceback.html ## if the bug is in this wiki, just kill the table and write: This Wiki. ## If a traceback is not available, please fill in the details here: || '''!MoinMoin Version''' || 1.3.5 || || '''OS and Version''' || FreeBSD 5.3 || || '''Python Version''' || 2.4.2 || || '''Server Setup''' || apache 2.0.55 || || '''Server Details''' || mod_python/3.1.4 Python/2.4.2 configured || == Workaround == ## How to deal with the bug until it is fixed don't use !PythonOption Location = Discussion = = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: Fixed in 1.5 -- NickPhillips ---- ## If you are a moin core developer, replace the category to Category* in these cases: ## Category MoinMoinNoBug - if this is not a bug. ## Category MoinMoinBugConfirmed - if you can confirm the bug on current code. ## Category MoinMoinBugFixed - after the bug is fixed in current code. CategoryMoinMoinBugFixed