Greetings,

I've noticed that the appserver throws an exception when trying to
re-serve a document that has been deleted since the first request:

[Thu Mar  7 17:19:15 2002] [error] WebKit: Error while executing script
/home/www/site/htdocs/mycontext/a.html
Traceback (most recent call last):
  File "WebKit/Application.py", line 349, in dispatchRequest
    self.handleGoodURL(transaction)
  File "WebKit/Application.py", line 495, in handleGoodURL
    self.createServletInTransaction(transaction)
  File "WebKit/Application.py", line 882, in createServletInTransaction
    if cache and cache['timestamp']<os.path.getmtime(path):
  File "/usr/local/python2.2/lib/python2.2/posixpath.py", line 144, in 
getmtime
    st = os.stat(filename)
OSError: [Errno 2] No such file or directory:
'/home/www/site/WK/a.html'


FYI, this is with RedHat 7.1, Python 2.2, Webware 0.6, and mod_webkit.
Currently CacheServletClasses, CacheServletInstances, and CacheContent are
enabled, but I received a similar traceback when they were not.

Adding the following at line 339 of Application.py seems to fix the
problem...

        try:
            ssPath = request.serverSidePath()
            if (ssPath is None) or (not os.path.exists(ssPath)):
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                self.handleBadURL(transaction)

...but I suspect that there's a cleaner way to do it, or perhaps a config
option that I'm totally overlooking. Any thoughts?

thanks,

Jason


P.S. Can anyone direct me to a _searchable_ version of the this list's
archive, or a version in mbox-format?


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to