
| Key: |
MODPYTHON-201
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Blocker
|
| Assignee: |
Unassigned
|
| Reporter: |
Jim Gallacher
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
3.3.0-dev-20061029
|
|
| Resolution Date: |
04/Nov/06 01:19 PM
|
|
Mal formed psp causes an exception in importer.py ReportError
The following psp contains a syntax error, and generates an exception as expected, causing importer.ReportError to be called.
test.psp
-------------
<%
req.write('x'
%>
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 192.168.1.2] req.write("""
[Fri Nov 03 16:08:19 2006] [error] [client 192.168.1.2] ^
[Fri Nov 03 16:08:19 2006] [error] [client 192.168.1.2] SyntaxError: invalid syntax
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1797, in ReportError
stime = time.asctime(time.localtime(modules.stime))
AttributeError: '_module_cache' object has no attribute 'stime'
[Fri Nov 03 16:08:19 2006] [error] [client 192.168.1.2] 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.
|
|
Description
|
Mal formed psp causes an exception in importer.py ReportError
The following psp contains a syntax error, and generates an exception as expected, causing importer.ReportError to be called.
test.psp
-------------
<%
req.write('x'
%>
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 192.168.1.2] req.write("""
[Fri Nov 03 16:08:19 2006] [error] [client 192.168.1.2] ^
[Fri Nov 03 16:08:19 2006] [error] [client 192.168.1.2] SyntaxError: invalid syntax
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1797, in ReportError
stime = time.asctime(time.localtime(modules.stime))
AttributeError: '_module_cache' object has no attribute 'stime'
[Fri Nov 03 16:08:19 2006] [error] [client 192.168.1.2] 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.
|
Show » |
made changes - 04/Nov/06 01:19 PM
| Field |
Original Value |
New Value |
|
Status
|
Open
[ 1
]
|
Closed
[ 6
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
|
Fix Version/s
|
|
3.3
[ 12310101
]
|
|