cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COCOON-606) WebSphere redirect bug
Date Fri, 11 Jan 2008 18:30:34 GMT

     [ https://issues.apache.org/jira/browse/COCOON-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carsten Ziegeler closed COCOON-606.
-----------------------------------

    Resolution: Won't Fix

If this bug is still relevant, please reopen.

> WebSphere redirect bug
> ----------------------
>
>                 Key: COCOON-606
>                 URL: https://issues.apache.org/jira/browse/COCOON-606
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.0.4
>         Environment: Operating System: All
> Platform: Other
>            Reporter: Andrei Marchanka
>            Assignee: Cocoon Developers Team
>
> Hi,
> I am work with Cocoon 2.0.4 and WebSphere 4.0.4
> When I am using redirect, I have 
> unpredictable behavior
> i.e.
> <map:redirect> does not work properly 
> (WebSphere bug 
> response.encodeRedirectURL() - always return full path start with http://)
> I am using patch
> --- 
> HttpEnvironment.java    2003-03-03 14:52:26.000000000 +0200
> +++ HttpEnvironment.java    2003-03-
> 03 14:57:24.000000000 +0200
> @@ -190,9 +190,6 @@
>          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);
>          }
> and all work fine. But may be it's 
> behavior only WebSphere 4.0.4 on Win 2k
> It's bug present in 2.0.3 too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message