[ http://issues.apache.org/jira/browse/COCOON-574?page=all ]
David Crossley updated COCOON-574: ---------------------------------- Bugzilla Id: (was: 16537) Other Info: [Patch available] Description: Proposed WebSphere 4.0/4.0.1 response.encodeRedirectURL() bug fix (by VG) doesn't work for JRun 3.1. It produces double base path fragment on the resulting URL, when it mistakenly assumes WS bug. I.e. for redirect to "../myfile.html" at "http://host/webapp/mydir/main.html" the result is "http://host/webapp/mydir/webapp/mydir/../myfile.html" on JRun. The patch adds additional check for output from encodeRedirectURL() and ONLY IF it actually does not contain expected base path, it adds one. was: Proposed WebSphere 4.0/4.0.1 response.encodeRedirectURL() bug fix (by VG) doesn't work for JRun 3.1. It produces double base path fragment on the resulting URL, when it mistakenly assumes WS bug. I.e. for redirect to "../myfile.html" at "http://host/webapp/mydir/main.html" the result is "http://host/webapp/mydir/webapp/mydir/../myfile.html" on JRun. The patch adds additional check for output from encodeRedirectURL() and ONLY IF it actually does not contain expected base path, it adds one. > [PATCH] fixed redirect under JRun 3.1 > ------------------------------------- > > Key: COCOON-574 > URL: http://issues.apache.org/jira/browse/COCOON-574 > Project: Cocoon > Type: Bug > Components: * Cocoon Core > Versions: 2.0.5-dev (Current CVS) > Environment: Operating System: All > Platform: All > Reporter: Michal Durdina > Assignee: Cocoon Developers Team > Attachments: HttpEnvironment.java.diff, release_2_1_5_1.patch_3.txt > > Proposed WebSphere 4.0/4.0.1 response.encodeRedirectURL() bug fix (by VG) > doesn't work for JRun 3.1. It produces double base path fragment on the > resulting URL, when it mistakenly assumes WS bug. > I.e. for redirect to "../myfile.html" at "http://host/webapp/mydir/main.html" > the result is "http://host/webapp/mydir/webapp/mydir/../myfile.html" on JRun. > The patch adds additional check for output from encodeRedirectURL() and ONLY > IF > it actually does not contain expected base path, it adds one. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira