Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.15, 2.2.0-m06
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 11, jboss 7.0.2-FINAL

      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

      1. theapp_simple.tgz
        3 kB
        bohl_-.
      2. theapp.tgz
        60 kB
        bohl_-.

        Activity

        Hide
        codylerum added a comment -

        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+

        Show
        codylerum added a comment - 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+
        Show
        codylerum added a comment - https://issues.jboss.org/browse/AS7-5923
        Hide
        Manfred Riem added a comment -

        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".

        Show
        Manfred Riem added a comment - 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".
        Hide
        bohl_-. added a comment -

        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.

        Show
        bohl_-. added a comment - 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.
        Hide
        bohl_-. added a comment -

        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?

        Show
        bohl_-. added a comment - 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?
        Hide
        Peter Miklos added a comment -

        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.)

        Show
        Peter Miklos added a comment - 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.)
        Hide
        codylerum added a comment -

        I see this frequently as well.

        Show
        codylerum added a comment - I see this frequently as well.

          People

          • Assignee:
            Unassigned
            Reporter:
            bohl_-.
          • Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: