Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.18, 6.1.19, 6.1.20, 6.1.21
-
Fix Version/s: 7.4.2
-
Component/s: Servlet
-
Labels:None
-
Environment:HideServer:
Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
JDK 1.6.0_12
<myfaces.version>1.2.6</myfaces.version>
<richfaces.version>3.3.2.CR1</richfaces.version>
<tomahawk.version>1.1.7</tomahawk.version>
<facelets.version>1.1.14</facelets.version>
<jstl.version>1.1.2</jstl.version>
<taglibs.version>1.1.2</taglibs.version>
<servlet-api.version>2.5</servlet-api.version>
<jsp-api.version>2.1</jsp-api.version>
<el-api.version>1.0</el-api.version>
<el-impl.version>1.0</el-impl.version>
Browsers:
Firefox 3.5.2
IE 6.0.XXX
ShowServer: Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100) JDK 1.6.0_12 <myfaces.version>1.2.6</myfaces.version> <richfaces.version>3.3.2.CR1</richfaces.version> <tomahawk.version>1.1.7</tomahawk.version> <facelets.version>1.1.14</facelets.version> <jstl.version>1.1.2</jstl.version> <taglibs.version>1.1.2</taglibs.version> <servlet-api.version>2.5</servlet-api.version> <jsp-api.version>2.1</jsp-api.version> <el-api.version>1.0</el-api.version> <el-impl.version>1.0</el-impl.version> Browsers: Firefox 3.5.2 IE 6.0.XXX
-
Number of attachments :
Description
Redirecting using a jsf action removes the "jsessionid"-GET-parameter:
Steps to reproduce:
a) start the web-app using mvn jetty:run
b) navigate to the page "redirectSrc.jsf"
c) Click on one of the links on the page (a redirect will happen)
Actual:
-> the "redirectDest.jsf" opens in a new tab, but NO jsessionid is appended to the URL
Expected:
-> the "redirectDest.jsf" opens in a new tab, and the jsessionid is appended to the URL
Note: It works on Tomcat 6.0.14 with cookies=false.
----------------
pom.xml
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>${maven.jetty.plugin.version}</version> <configuration> <scanIntervalSeconds>0</scanIntervalSeconds> <webDefaultXml>src/jetty/resources/jetty-webdefault.xml</webDefaultXml> <overrideWebXml>src/jetty/resources/development-overrides-web.xml</overrideWebXml> <scanTargetPatterns> <scanTargetPattern> <directory>src/main/webapp/</directory> <excludes> <exclude>**/*.xhtml</exclude> <exclude>**/*.html</exclude> <exclude>**/*.css</exclude> <exclude>**/*.js</exclude> </excludes> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> </scanTargetPattern> </scanTargetPatterns> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>${jetty.port}</port> <host>localhost</host> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> <stopPort>${jetty.stopport}</stopPort> <stopKey>foo</stopKey> </configuration> </plugin>
Navigation-rule:
<from-view-id>/pages/main/redirectSrc.xhtml</from-view-id>
<navigation-case>
<from-outcome>redirectDest</from-outcome>
<to-view-id>/pages/main/redirectDest.xhtml</to-view-id>
<redirect />
</navigation-case>
redirectSrc.xhtml
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:c="http://java.sun.com/jstl/core" > <fieldset> <legend> h:form with h:commandLink+targets and redirecting jsf action </legend> <ul> <li><span style="color: green;">[works]</span> Tomcat 6.0.14</li> <li><span style="color: red;">[fails]</span> Jetty 6.1.18</li> <li><span style="color: red;">[fails]</span> Jetty 6.1.19</li> <li><span style="color: red;">[fails]</span> Jetty 6.1.20</li> <li><span style="color: red;">[fails]</span> Jetty 6.1.21</li> </ul> Steps to reproduce: <ol> <li>Click on a link below</li> <li>Check, whether a new site was opened in a new tab and it uses the jsessionid in the url.</li> </ol> <h:form> <h:commandLink action="redirectDest" value="redirect (target @ h:commandlink)" target="_blank" /> </h:form> <h:form target="_blank"> <h:commandLink action="redirectDest" value="redirect (target @ h:form)" /> </h:form> <h:form target="_blank"> <h:commandLink action="redirectDest" value="redirect (target @ h:form+h:commandLink)" target="_blank" /> </h:form> </fieldset> </ui:composition>
redirectDest.xhtml
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:c="http://java.sun.com/jstl/core" > Has to be opened in a new tab and has to use the jsessionid in the url. </ui:composition>
Activity
Jan Bartel
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Jan Bartel [ janb ] |
Jan Bartel
made changes -
| Assignee | Jan Bartel [ janb ] | Greg Wilkins [ gregw ] |
Greg Wilkins
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 7.4.2 [ 17381 ] | |
| Resolution | Fixed [ 1 ] |