Hi,

In org.apache.cocoon.environment.http.HttpEnvironment.redirect() I found the
following code:

-----------------------------------------------------
        // redirect
        String redirect = this.response.encodeRedirectURL(newURL);

        // FIXME (VG): WebSphere 4.0/4.0.1 bug
        if (!newURL.startsWith("/") && newURL.indexOf(':') == -1 &&
redirect.indexOf(':') != -1) {
            getLogger().debug("Redirect: WebSpehere Bug Detected!");
            String base = NetUtils.getPath(request.getRequestURI());
            if (base.startsWith("/")) {
                base = base.substring(1);
            }
            redirect = response.encodeRedirectURL(base + '/' + newURL);
        }
----------------------------------------------------------

Is this related to translating relative url's into absolute url's and
would this be the place to implement translating relative redirect url's in
absolute url's as mentioned in the following thread:

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=103926206004897&w=2

TIA,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to