tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: problem with redirects when using tomcat-4.0b5 and mod_jk (fwd)
Date Sat, 07 Jul 2001 20:51:17 GMT
On Sat, 7 Jul 2001, Donald Ball wrote:

> i've seen no responses to this issue. does anyone have any suggestions?
> - donald

i thought i'd go ahead and take a gander at helping myself. after futilely
trying to get catalina running in a debugger on linux (can anyone else do
this?), i resorted to good ol' System.err and patched HttpResponseBase:

    private String toAbsolute(String location) {
        if (location == null)
            return (location);
        // Construct a new absolute URL if possible (cribbed from
        // the DefaultErrorPage servlet)
        URL url = null;
        try {
            url = new URL(location);
        } catch (MalformedURLException e1) {
            HttpServletRequest hreq =
                (HttpServletRequest) request.getRequest();
            String requrl = HttpUtils.getRequestURL(hreq).toString();
            System.err.println("REQURL: "+requrl);
            try {
                url = new URL(new URL(requrl), location);
            } catch (MalformedURLException e2) {
                throw new IllegalArgumentException(location);
        return (url.toString());


and i found the the request url that it's having trouble with is:

apparantly, can't parse this because it doesn't recognize
https as a protocol! i've got a couple of workarounds in mind, but before
i kludge together a patch, is there anything else i can do to fix this?
adding the jsse library doesn't seem to help, but maybe the https protocol
handler needs to be registered?

- donald

View raw message