[EMAIL PROTECTED] wrote: > So, I can't help but feel the big problems everyone had with this > are uninformed. HTTPRequest.serverSidePath doesn't work as it does > for every other web application framework. I showed why and showed > code which resolves the problem for me... a very long time ago.
When I Google for serverSidePath, Webware is the only framework that has a method by that name. Which methods in other frameworks are you comparing serverSidePath to? The docstring for serverSidePath implies that you can pass in a _relative_ path but says nothing about absolute paths. serverSidePath() was clearly designed to work with relative paths only. Furthermore, your patch will only work correctly if you assume that all absolute paths map directly into the document root of your webserver. That just isn't the case for most Webware installations, which use Context directories that have no relationship to the webserver's document root at all. I don't see why you are so adamant about this. If your patch works for you because of the particulars of your installation, use it. Several other people have pointed out why it doesn't make sense in general, and it just doesn't seem prudent to add in functionality that doesn't generally work. You mentioned that the fsPath() method uses DOCUMENT_ROOT but that method is only called if WK_ABSOLUTE = 1 which is only true if you are using mod_webkit with the psp-handler directives. In that case, DOCUMENT_ROOT _does_ make sense because the psp-handler is designed to serve psp files directly from your document tree. But that's not the case for most Webware installations that use contexts. - Geoff ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss