I have "index.psp" listed as a DirectoryIndex under Apache, which
means that if I have a file "/x/index.psp" under the web root, and the
user attempts to fetch "/x/", Apache will send the request to the
handler for "/x/index.psp."  This is ModPythonAdapter::pspHandler or
whatever.  The request is mustered and sent to the application server
with "WK_ABSOLUTE" set in the request's environment.

The application server then calls Application.serverSidePathForRequest.
If WK_ABSOLUTE was _not_ set, this function proceeds to check various
specified directory files (index.* and Main.*); when it finds one, it
uses the path of that file and returns it.  If you use WK_ABSOLUTE,
however, there is no checking for directory files.  

Thus, in my case, what happens is: the user requests "/x/"; Apache
recognizes this as PSP and forwards it to Webware; Webware fails to
take the final step in determining the PSP filename and returns a
broken redirect url to "/x/" (redirects have to be absolute URIs).  This
seems like the wrong behavior.

I've patched my own copy of Webware to search for index.psp and
Main.psp if the request was absolute and refers to a directory, but my
patch is a little messy, and I figured it should really be addressed
by someone more familiar with the project.

If this has already been fixed in an rc or in CVS, so much the better.



Relevant Apache settings:

DirectoryIndex index index.psp
AddHandler python-program .psp
PythonHandler ModPythonAdapter::pspHandler



Obligatory:

Apache 1.3.20
Debian 2.2
Linux 2.2.16
mod_python 2.7.2
Webware 0.5

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

Reply via email to