Work started: (MODPYTHON-178) mod_python.psp should return
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Work started: (MODPYTHON-178) mod_python.psp should return




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Work started: (MODPYTHON-178) mod_python.psp should return  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-06 12:12 PM

[ http://issues.apache.org/jira/brows...ON-178?page=all ]

Work on MODPYTHON-178 started by Graham Dumpleton.

> mod_python.psp should return 404 and not 500 when PSP file doesn't exist.
> -------------------------------------------------------------------------
>
>                 Key: MODPYTHON-178
>                 URL: http://issues.apache.org/jira/browse/MODPYTHON-178
>             Project: mod_python
>          Issue Type: Improvement
>    Affects Versions: 3.2.8
>            Reporter: Graham Dumpleton
>         Assigned To: Graham Dumpleton
>             Fix For: 3.3
>
>
> When using mod_python.psp, if a request is made against a .psp file which 
doesn't exist, then a 500 error response is returned. If PythonDebug is on, 
the response is of the form:
> Mod_python error: "PythonHandler mod_python.psp"
> Traceback (most recent call last):
>   File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/pytho
n2.3/site-packages/mod_python/apache.py", line 385, in HandlerDispatch
>     result = object(req)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/pytho
n2.3/site-packages/mod_python/psp.py", line 302, in handler
>     p = PSP(req)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/pytho
n2.3/site-packages/mod_python/psp.py", line 111, in __init__
>     self.load_from_file()
>   File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/pytho
n2.3/site-packages/mod_python/psp.py", line 164, in load_from_file
>     raise ValueError, "%s is not a file" % filename
> ValueError: /Users/grahamd/Workspaces/testing/psp-1/bar.psp is not a file
> Instead of returning a 500 error, mod_python.psp should identify that targ
et of request does not exist and return a 404 (NOT_FOUND) error response ins
tead.
> Note that this will need to cope with requests against .psp_ file when PythonDebug
 on and SetHandler being used.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:55 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register