|
Bugzilla – Full Text Bug Listing |
| Summary: | Servlet forwarding with querystring parameters doesn't work in packaged tomcat tomcat6-6.0.16-6.4 | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.1 | Reporter: | Dennis Steenstra <dennis.steenstra> |
| Component: | Java | Assignee: | Michal Vyskocil <mvyskocil> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Critical | ||
| Priority: | P1 - Urgent | CC: | forgotten_1-yzHWP3HO |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | openSUSE 11.0 | ||
| Whiteboard: | maint:released:11.0:25240 maint:released:11.1:25240 maint:released:sle11:25239 | ||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Bug Depends on: | |||
| Bug Blocks: | 485933 | ||
| Attachments: |
webapp.rar
webapp war |
||
|
Description
Dennis Steenstra
2009-03-12 14:11:30 UTC
JFI: the tomcat-6.0.18 is available in Java:packages The problem seems to be related with a bad fix for CVE-2008-2370 I was unable to reproduce it for Struts. Even if the forwarding was broken - the following code return an error
ServletContext servletContext = session.getServletContext();
RequestDispatcher rd = servletContext.getRequestDispatcher("/test.jsp?arg=succeded");
rd.forward(request, response);
The requested resource (/test/test.jsp?arg=succeded) is not available.
The struts works well. The
<logic:redirect forward="welcome"/>
with
<global-forwards>
<forward
name="welcome"
path="/Welcome.do?arg=succeded"/>
</global-forwards>
in WEB-INF/struts-config.xml works well.
Did you used a struts from distribution, or a third party one? Or can you give me a code snippet for test?
I have received information from development here. Before I upload it, I'll check what the legal status of the code is. ok, checked it. It's OK. instructions: The included project is a maven project. You'll need maven if you want to build it. There are 3 actions to perform: 1) /action/Action1.do - this will forward to /action/Action2.do and then to helloWorld.jsp 2) /action/Action1.do?action=2b - this will forward to /action/Action2.do?action=2b and then a 404 is thrown 3) /action/Action1.do?action=2c - this will redirect to /action/Action2.do?action=2c and then to helloWorld.jsp The two attachments needed, will follow. Created attachment 280491 [details]
webapp.rar
Created attachment 280492 [details]
webapp war
if more information is needed, just holler. Thanks for your example, I reproduced a bad behavior on unpatched tomcat6 and checked that a fix works. This issue will be released with prepared cumulative fix for tomcat6. See bug#485933 for details. Assigning to me. Was included into tomcat6 packages and will be delivered with upcomming security update of tomcat. The SWAMPID for this issue is 25234. Please submit the patch and patchinfo file using this ID. (https://swamp.suse.de/webswamp/wf/25234) Update released for: tomcat6, tomcat6-admin-webapps, tomcat6-docs-webapp, tomcat6-javadoc, tomcat6-jsp-2_1-api, tomcat6-lib, tomcat6-servlet-2_5-api, tomcat6-webapps Products: openSUSE 11.0 (i386) openSUSE 11.1 (i586) Update released for: tomcat6, tomcat6-admin-webapps, tomcat6-docs-webapp, tomcat6-javadoc, tomcat6-jsp-2_1-api, tomcat6-lib, tomcat6-servlet-2_5-api, tomcat6-webapps Products: SLE-SDK 11 (i386, ia64, ppc64, s390x, x86_64) |