Description

Describe the bug...

PythonOption Location when added to apache config can create error when wiki is called.

Steps to reproduce

  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.

<Location "/srlwiki">

      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

  </Location>

[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

Details

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

don't use PythonOption Location

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/ModPyPythonOptionAndPathInfo (last edited 2007-10-29 19:12:07 by localhost)