Mod_python error: "PythonHandler roundup.cgi.apache" KeyError: 'REQUEST_METHOD'

Simon Huskier <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <CAF=cZjS5x1BtNa1n9KwtRa_c4LFRQKp=ktOsd0Enim39zhNqqA@mail.gmail.com>
Hi all:

After installed roundup and configured mod_python, I try to access my
tracker[issues] through:
http://192.168.14.100/roundup/issues/

I've got an error as following description:

Mod_python error: "PythonHandler roundup.cgi.apache"

Traceback (most recent call last):

  File "/usr/lib64/python2.6/site-packages/mod_python/apache.py", line
398, in HandlerDispatch
    result = obj(req)

  File "/usr/lib/python2.6/site-packages/roundup/cgi/apache.py", line
135, in handler
    _client.main()

  File "/usr/lib/python2.6/site-packages/roundup/cgi/client.py", line
362, in main
    self.inner_main()

  File "/usr/lib/python2.6/site-packages/roundup/cgi/client.py", line
550, in inner_main
    self.write_html(html)

  File "/usr/lib/python2.6/site-packages/roundup/cgi/client.py", line
1211, in write_html
    if self.env['REQUEST_METHOD'] == 'HEAD':

KeyError: 'REQUEST_METHOD'


The roundup version is 1.4.20.

[root@server issues]# roundup-admin -v

1.4.20 (python 2.6.6)

I tested the mod_python module, and it works fine. I put my bug
tracker[issues] in /var/www/html/roundup/[issues] directly, and the
httpd.conf is like this:

#################################################
# Roundup Issue tracker
#################################################
# enable Python optimizations (like 'python -O')
PythonOptimize On
# let apache handle static files from 'html' directories
AliasMatch /roundup/(.+)/@@file/(.*) /var/www/html/roundup/$1/html/$2
# everything else is handled by roundup web UI
AliasMatch /roundup/([^/]+)/(?!@@file/)(.*) /var/www/html/roundup/$1/dummy.py/$2
# roundup requires a slash after tracker name - add it if missing
#RedirectMatch permanent ^/roundup/([^/]+)$ /roundup/$1/

# common settings for all roundup trackers
<Directory /var/www/html/roundup/*>
  Order allow,deny
  Allow from all
  AllowOverride None
  Options None
  AddHandler python-program .py
  PythonHandler roundup.cgi.apache
  # uncomment the following line to see tracebacks in the browser
  # (note that *some* tracebacks will be displayed anyway)
  PythonDebug On
</Directory>
# roundup tracker homes
<Directory /var/www/html/roundup/issues>
  PythonOption TrackerHome /var/www/html/roundup/issues
</Directory>


Any ideas?

Thanks.

Simon

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk

_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.