[JAVASERVERFACES-2224] cid appended to url twice Created: 13/Oct/11  Updated: 13/Nov/12  Resolved: 12/Nov/12

Status: Closed
Project: javaserverfaces
Component/s: None
Affects Version/s: 2.1.3
Fix Version/s: 2.1.15, 2.2.0-m06

Type: Bug Priority: Major
Reporter: bohl_-. Assignee: Unassigned
Resolution: Won't Fix Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 11, jboss 7.0.2-FINAL


Attachments: File theapp.tgz     File theapp_simple.tgz    
Tags: cid, jboss, twice

 Description   

conversation id ("cid") gets appended twice to url
This is the offending url:

http://localhost:8080/theapp/edit.jsf?cid=me&cid=me

How to recreate:

By the way, this project is based on the jboss-javaee6-webapp example application, which can be created with the following command:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.1:generate \
-DarchetypeGroupId=org.jboss.spec.archetypes \
-DarchetypeArtifactId=jboss-javaee6-webapp \
-DarchetypeVersion=7.0.0.Final



 Comments   
Comment by codylerum [ 22/Nov/11 ]

I see this frequently as well.

Comment by Peter Miklos [ 11/Dec/11 ]

It looks a bit more ugly if you try with the FacesServlet prefix mapping and navigate to

http://localhost:8080/theapp/faces/index.xhtml

After clicking the Create button the application gets redirected to

http://localhost:8080/theapp/faces/faces/edit.xhtml?cid=me&cid=me

(note the duplicated FacesServlet prefix.)

Comment by bohl_-. [ 10/Nov/12 ]

Uploading theapp_simple.tgz, a simplified version that runs in Jboss 7 or jetty 8 via build profiles; see README.md. The bug does not occur anymore with the jetty configuration, using javax.faces:2.2.0-m05. However, it still occurs in the current JBoss AS 7.1.1.Final, which apparently uses its own built-in JSF implementation. Does JBoss AS 7 use the Mojarra implementation? If so, which version?

Comment by bohl_-. [ 11/Nov/12 ]

Found these jars in the jboss libs:

jsf-impl-2.1.7-jbossorg-2.jar
weld-core-1.1.5.AS71.Final.jar

So I tried to run the jetty with this configuration (dependencies section in pom):

 
<dependency>
	<groupId>com.sun.faces</groupId>
	<artifactId>jsf-impl</artifactId>
	<version>2.1.7</version>
</dependency>

<dependency>
	<groupId>com.sun.faces</groupId>
	<artifactId>jsf-api</artifactId>
	<version>2.1.7</version>
</dependency>

<dependency>
	<groupId>org.jboss.weld.servlet</groupId>
	<artifactId>weld-servlet</artifactId>
	<version>1.1.5.AS71.Final</version>
</dependency>

Even with this configuration, the problem doesn't occur (running jetty). So maybe this is not a JSF problem, but a jboss specific one.

Comment by Manfred Riem [ 12/Nov/12 ]

As per comments, this is a JBoss specific bug, since the codebase has been changed by JBoss please file this issue at their bug tracker. Closing it out as "Won't fix".

Comment by codylerum [ 12/Nov/12 ]

https://issues.jboss.org/browse/AS7-5923

Comment by codylerum [ 13/Nov/12 ]

This was a Weld bug - https://issues.jboss.org/browse/WELD-909

Fixed in Weld 1.1.6 and included in JBoss AS 7.1.2+

Generated at Sun Apr 26 03:35:50 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.