#63 HTTPRequest.info() fix

closed-fixed
nobody
WebKit (45)
5
2004-08-27
2003-10-27
Anonymous
No

HTTPRequest.info() and .infoHtml() Throw a
NotImplemented exception because of .contextPath()

This patch against 0.8.1 changes this by removing
.contextPath() from the list of information functions to be
called.

http://c0re.23.nu/c0de/misc/Webware-0.8.1-
HTTPRequest.info.patch--- HTTPRequest.py.orig Mon Oct 27
22:53:55 2003
+++ HTTPRequest.py Mon Oct 27 22:54:09 2003
@@ -616,7 +616,7 @@

_infoMethods = (
HTTPRequest.servletPath,
- HTTPRequest.contextPath,
+ #HTTPRequest.contextPath,
HTTPRequest.pathInfo,
HTTPRequest.pathTranslated,
HTTPRequest.queryString,

Discussion

  • Geoff Talvola

    Geoff Talvola - 2004-08-27
    • status: open --> closed-fixed
     
  • Geoff Talvola

    Geoff Talvola - 2004-08-27

    Logged In: YES
    user_id=88162

    I fixed this in a more general way -- by ignoring any
    exceptions that happen when calling the information
    functions. That way if contextPath() ever gets implemented,
    it will automatically get added to the info.

    I only fixed this in CVS, not on the 0.8 branch, because I
    feel that at this point, only critical security or stability
    fixes should go onto the 0.8 branch.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks