ReportError in raises an exception for mal-formed psp

                 Key: MODPYTHON-201
             Project: mod_python
          Issue Type: Bug
          Components: importer
    Affects Versions: 3.3
         Environment: 3.3.0-dev-20061029 
            Reporter: Jim Gallacher
            Priority: Blocker

Mal formed psp causes an exception in ReportError

The following psp contains a syntax error, and generates an exception as 
expected, causing importer.ReportError to be called.


There is bug in ReportError however that raises an exception, and a 500 
Internal Server Error is sent to the client.

apache error_log
[Fri Nov 03 16:08:19 2006] [error] [client]     req.write("""
[Fri Nov 03 16:08:19 2006] [error] [client]       ^
[Fri Nov 03 16:08:19 2006] [error] [client] SyntaxError: invalid 
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mod_python/", line 1797, in 
    stime = time.asctime(time.localtime(modules.stime))
AttributeError: '_module_cache' object has no attribute 'stime'
[Fri Nov 03 16:08:19 2006] [error] [client] python_handler: 
Dispatch() returned non-integer.

I'm not sure if this is a simple bug in ReportError, or indicates a deeper 
problem with cache mechanism in the importer.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


Reply via email to